Eloquent 101

Eloquent Code

        $film = Film::first();
        return $film->created_at->format('Y-m-d');

Sql Executed

Total Execution Time: 10.31

    select * from `films` limit 1
        Time: 10.31 

Returned Data

"2017-10-12"