small fixing, added throw errors in widgets
This commit is contained in:
@@ -18,7 +18,7 @@ class ClientWidgetSliderController extends Controller
|
||||
->with(['slides' => function($query) {
|
||||
$query->where('is_active', true);
|
||||
}])
|
||||
->first();
|
||||
->firstOrFail();
|
||||
|
||||
return $slider ?: null;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user