Thursday, May 11, 2017

[Lavarel 5.4][LogicException] Unable to prepare route [api/user] for serialization. Uses Closure

Error message

LogicException Unable to prepare route [api/user] for serialization. Uses Closure

I can't sure is the error solved but used a method to except from the problem.
Check your routes/api.php file existed , don't delete it:


Open the file and comment or remove these 3 lines:


cache the routes again and success:


Reference

https://laracasts.com/discuss/channels/laravel/makeauth-causes-unable-to-prepare-route-apiuser-for-serialization-uses-closure

No comments :

Post a Comment