Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel json eloquent

protected $casts = [
    'birthday' => 'date:Y-m-d',
    'joined_at' => 'datetime:Y-m-d H:00',
];
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #json #eloquent
ADD COMMENT
Topic
Name
1+1 =