From 3a0a7f836d3f143218a662d5cbe11f10cab662e1 Mon Sep 17 00:00:00 2001 From: Emmanuel Lampe Date: Thu, 3 Dec 2020 11:21:30 +0100 Subject: [PATCH] Updated readme --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 27115dd..10ffeea 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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; @@ -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;