Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rexlManu committed Dec 3, 2020
1 parent 0dcf6fd commit 3a0a7f8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Currently the views are only implemented for bootstrap. After publishing, you sh

The trait ``HasTickets`` should be added to the user model
```php

use RexlManu\LaravelTickets\Traits\HasTickets;

class User
{
use HasTickets; // important for laravel-tickets
Expand All @@ -64,7 +67,10 @@ class User
The ticket routes can be implemented via the macro
```php

use RexlManu\LaravelTickets\Controllers\TicketControllable;class TicketController extends Controller {
use Illuminate\Routing\Controller;
use RexlManu\LaravelTickets\Controllers\TicketControllable;

class TicketController extends Controller {

use TicketControllable;

Expand All @@ -76,7 +82,11 @@ Route::tickets( TicketController::class );
For ticket referneces
```php

use RexlManu\LaravelTickets\Interfaces\TicketReference;use RexlManu\LaravelTickets\Traits\HasTicketReference;class ExampleModel extends Model implements TicketReference {
use Illuminate\Database\Eloquent\Model;
use RexlManu\LaravelTickets\Interfaces\TicketReference;
use RexlManu\LaravelTickets\Traits\HasTicketReference;

class ExampleModel extends Model implements TicketReference {

use HasTicketReference;

Expand Down

0 comments on commit 3a0a7f8

Please sign in to comment.