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.

http://i61.tinypic.com/311nt5g.png

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

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -