@Ultear What exactly do you mean by "when I want to use profile alias"?
Feb 9, 2015
16
Level 1
Laravel named routes returns "Whoops" error
Hello,
I'm new to Laravel and i have my first problem standing in front of me.
I've set 2 routes:
Route::get('/', function() { return 'Welcome to index file'; });
Route::get('user/profile', [ 'as' => 'profile', function(){ return 'UserController@showProfile'; } ]);
Either i use localhost/ or localhost/user/profile both are working, problem is when i want to use "profile" alias, then my laravel returns "Whoops" error. Mod_rewrite with Allow override All are set
Debug says that requested file doesnt exist.
I'm sorry if i wrote on wrong forum, didn't know which should i use, I'm new here :)
Thank you for help
Please or to participate in this conversation.