2016-09-01 16:23:39 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Gallery;
|
|
|
|
|
2016-09-03 22:13:05 +01:00
|
|
|
use App\Album;
|
2016-09-02 10:42:05 +01:00
|
|
|
use App\Facade\Theme;
|
2016-09-01 16:23:39 +01:00
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
|
|
|
|
class DefaultController extends Controller
|
|
|
|
{
|
|
|
|
public function index()
|
|
|
|
{
|
2016-09-03 22:13:05 +01:00
|
|
|
$albums = Album::all()->sortBy('name');
|
|
|
|
|
|
|
|
return Theme::render('gallery.index', [
|
|
|
|
'albums' => $albums
|
|
|
|
]);
|
2016-09-01 16:23:39 +01:00
|
|
|
}
|
|
|
|
}
|