Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Eloquent cast date

protected $casts = [
	'created_at' => 'datetime:Y-m-d',
];
 
PREVIOUS NEXT
Tagged: #Eloquent #cast #date
ADD COMMENT
Topic
Name
6+1 =