diff --git a/app/Http/Controllers/API/EventController.php b/app/Http/Controllers/API/EventController.php index 12be7db..4d4e0dc 100644 --- a/app/Http/Controllers/API/EventController.php +++ b/app/Http/Controllers/API/EventController.php @@ -26,7 +26,7 @@ public function index(Calendar $calendar) // Set the full path on the image attribute and add a full url to event $events->transform(function ($event) { - $event->image = isset($event->image) ? asset('storage/banners/' . $event->image) : null; + $event->image = isset($event->image) ? asset('storage/banners/' . $event->image) : asset('images/tba.jpg'); $event->link = route('events.show', $event->id); return $event; }); diff --git a/public/images/tba.jpg b/public/images/tba.jpg new file mode 100644 index 0000000..4974eed Binary files /dev/null and b/public/images/tba.jpg differ diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 5b20e69..5afa522 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -12,6 +12,8 @@