@@ -44,8 +44,8 @@ |
||
| 44 | 44 | $this->mergeConfigFrom(__DIR__.'/../config/responsive-gallery.php', 'responsive-gallery'); |
| 45 | 45 | |
| 46 | 46 | $this->app->bind('gallery-index', function(){ |
| 47 | - return new ResponsiveGalleryFactory(); |
|
| 48 | - }); |
|
| 47 | + return new ResponsiveGalleryFactory(); |
|
| 48 | + }); |
|
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | } |
@@ -30,10 +30,10 @@ |
||
| 30 | 30 | $galleryImages = GalleryImage::orderBy('file_name') |
| 31 | 31 | ->where('file_name', 'like', '%' . $request->input('keywords') . '%') |
| 32 | 32 | ->paginate(20); |
| 33 | - } |
|
| 34 | - else |
|
| 35 | - $galleryImages = GalleryImage::orderBy('file_name') |
|
| 33 | + } else { |
|
| 34 | + $galleryImages = GalleryImage::orderBy('file_name') |
|
| 36 | 35 | ->paginate(20); |
| 36 | + } |
|
| 37 | 37 | |
| 38 | 38 | return view('vendor.laravel-responsive-gallery.index',compact('galleryImages')) |
| 39 | 39 | ->with('i', (request()->input('page', 1) - 1) * 20) |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | |
| 18 | - /* public $guarded = []; |
|
| 18 | + /* public $guarded = []; |
|
| 19 | 19 | |
| 20 | 20 | public $casts = [ |
| 21 | 21 | 'serialized_event' => 'array', |