Hi, have you tried this inside your authorize method:
$employee = $this->route->parameter('employee');
var_dump($employee);
Cheers!
Thanks a lot. It was a bit tricky due to usage of controller routes.
get('employee/hire/{employee}', 'App\EmployeeController@getHire');
post('employee/hire/{employee}', 'App\EmployeeController@postHire');
Route::controller('employee', 'App\EmployeeController');
A little advice: avoid implicit routing as much as possible.
Regards,
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community