drehimself/laravel-movies-example

Illuminate\Foundation\Bootstrap\HandleExceptions::handleError app/ViewModels/MoviesViewModel.php:48

Opened this issue · 1 comments

ErrorException
Undefined index: release_date

'release_date' => Carbon::parse($movie['release_date'])->format('M d, Y'),

i do not understand what happen.
Are there changes in the API, haven´t found something.

@grimmcreative there are some objects in array which don't have release_date... all you need to do is check first

isset($movie['release_date']) ? Carbon::parse($movie['release_date'])->format('M d, Y') : '',