So the idea here is that i want to check a users role_id against a number so it would look something like
if ($user->role_id >1 ){
Route::post('/moreDetails', 'HomeController@update');
}
How would i go about doing this?
So the idea here is that i want to check a users role_id against a number so it would look something like
if ($user->role_id >1 ){
Route::post('/moreDetails', 'HomeController@update');
}
How would i go about doing this?