KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do you return an Eloquent model to the browser as JSON? What is the difference between the two methods below? Both seems to work. #1: return Response::json($user->toArray()); #2: return $user->toJson();
Tags (comma-separated)
Save Edits
Cancel