Newbie here. I'm trying to use a prefix for the first time.
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::get('/home', 'HomeController@index');
Route::group(['prefix' => 'admin','middleware' => ['admin']], funtion(){
Route::get('/users', 'AdminUserController@index');
Route::get('/users/create', 'AdminUserController@create');
Route::get('/users/{id}', 'AdminUserController@store');
Route::get('/users/profile', function());
I keep getting this error:
[Symfony\Component\Debug\Exception\FatalThrowableError] Parse error: syntax error, unexpected ';'
I've commented out all the 'route' 'get' and still get the error
via Jeff Winkler