php - Route won't return view Laravel -
i'm trying build api laravel. did projects framework never had kind of issue i'm dealing now. in picture see routes have build.
the first 1 opens laravel welcome page, second returns users in json.
but in last route want return view created, when visiting url blank white page no content, error message or log.
i added new newuser.blade.php view in views folder.
code help, although picture need move users/new
route above users/{id}
one.
laravel passing 'new' $id parameter usercontroller@userbyid. changing order means recognise other route first.
// above route::get('users/new', function() { // return view }); // below route::get('users/{id}', 'usercontroller@userbyid');
Comments
Post a Comment