Giter VIP home page Giter VIP logo

laravel-tickets's Introduction

Laravel Tickets

Latest Version on Packagist Build Status Quality Score Total Downloads

Simple but effective solution to provide support. Due to its lightweight construction, it fits into any project. In addition, it offers a wide range of configuration options from the start and is therefore suitable for any area.

Features

  • Highly configurable
  • auto closing
  • file upload support
  • permission support
  • ticket categories
  • priority
  • easy to customize
  • uuid support
  • declare ticket reference
  • multiple language support

Preview

Ticket list: ticket list Ticket creation: ticket create Ticket show: ticket show

Todos

  • Improve documentation
  • tailwind and vue frontend
  • admin ticket scaffold
  • unit tests
  • uuid:
    • rule,
    • migrations
    • controller stuff

Installation

You can install the package via composer:

composer require rexlmanu/laravel-tickets

After the installation

php artisan vendor:publish --provider=RexlManu\LaravelTickets\LaravelTicketsServiceProvider

Documentation

Currently the views are only implemented for bootstrap. After publishing, you should implement the layouts.

The trait HasTickets should be added to the user model

use RexlManu\LaravelTickets\Traits\HasTickets;

class User
{
    use HasTickets; // important for laravel-tickets
}

The ticket routes can be implemented via the macro

use Illuminate\Routing\Controller;
use RexlManu\LaravelTickets\Controllers\TicketControllable;

class TicketController extends Controller {

  use TicketControllable;

}

Route::tickets( TicketController::class );

For ticket referneces

use Illuminate\Database\Eloquent\Model;
use RexlManu\LaravelTickets\Interfaces\TicketReference;
use RexlManu\LaravelTickets\Traits\HasTicketReference;

class ExampleModel extends Model implements TicketReference {

  use HasTicketReference;

  // Check if user has access to this model
  function hasReferenceAccess() : bool {
      return request()->user()->user_id == $this->user_id;
  }

}

Add this model to the list of reference models now and Then you should see this model as reference

Config: All points of the configuration are documented.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

laravel-tickets's People

Contributors

abdosaeedelhassan avatar alessiobrendt avatar rene-roscher avatar rexlmanu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

laravel-tickets's Issues

How To Edit views, functions of package without modifying package files

Hi,

how can I edit the views without modifying the packages blade files?
I also need to modify

  1. the store function of TicketControllable.php
  2. created function of TicketMessageObserver.php
  3. handle function of AutoCloseCommand.ph
  4. delete function of TicketObserver.php

Thank you very much

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.