From df21ce952985ae8c9ab37abf670143ba4132a1bd Mon Sep 17 00:00:00 2001 From: merdan Date: Wed, 6 May 2020 21:56:39 +0500 Subject: [PATCH] help desk notification ticketCommented --- app/Http/routes.php | 2 ++ app/Notifications/TicketReceived.php | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/app/Http/routes.php b/app/Http/routes.php index 9198ca7e..5cb9cc9a 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -762,6 +762,8 @@ Route::group( // return 'TODO: add terms and cond'; // } // ]); + Route::get('helpTicket/{id}/replay', 'HelpTicketCrudController@replay')->name('ticket.replay'); + Route::post('helpTicket/{id}/replay', 'HelpTicketCrudController@replayPost')->name('ticket.replay.post'); /** CATCH-ALL ROUTE for Backpack/PageManager - needs to be at the end of your routes.php file **/ Route::get('{page}/{subs?}', ['uses' => '\App\Http\Controllers\PageController@index','as'=>'about']) ->where(['page' => '^(((?=(?!admin))(?=(?!\/)).))*$', 'subs' => '.*']); diff --git a/app/Notifications/TicketReceived.php b/app/Notifications/TicketReceived.php index e1d71e7c..41ebed18 100644 --- a/app/Notifications/TicketReceived.php +++ b/app/Notifications/TicketReceived.php @@ -19,6 +19,13 @@ class TicketReceived extends Notification implements ShouldQueue * @return void */ + /** + * The maximum number of exceptions to allow before failing. + * + * @var int + */ + public $maxExceptions = 3; + protected $ticket; public function __construct(HelpTicket $ticket)