19 lines
350 B
PHP
19 lines
350 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Gallery;
|
|
|
|
use App\Album;
|
|
use App\Facade\Theme;
|
|
use App\Http\Controllers\Controller;
|
|
|
|
class DefaultController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$albums = Album::all()->sortBy('name');
|
|
|
|
return Theme::render('gallery.index', [
|
|
'albums' => $albums
|
|
]);
|
|
}
|
|
} |