wip
This commit is contained in:
16
app/Http/Controllers/Web/Gallery/GalleryController.php
Normal file
16
app/Http/Controllers/Web/Gallery/GalleryController.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Web\Gallery;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Site\Gallery;
|
||||
|
||||
class GalleryController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view('web.themes.shella.pages.galleries.index', [
|
||||
'galleries' => Gallery::with('media')->enabled()->latest()->get(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user