Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Collection to JSON

use AppModelsUser;
 
$user = User::find(1);
 
return $user->toJson();
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Collection #JSON
ADD COMMENT
Topic
Name
3+5 =