blue-twilight/app/Http/Controllers/Gallery/DefaultController.php

26 lines
646 B
PHP

<?php
namespace App\Http\Controllers\Gallery;
use App\Album;
use App\Facade\Theme;
use App\Facade\UserConfig;
use App\Helpers\DbHelper;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class DefaultController extends Controller
{
public function index(Request $request)
{
$albums = DbHelper::getAlbumsForCurrentUser();
$resetStatus = $request->session()->get('status');
return Theme::render('gallery.index', [
'albums' => $albums,
'info' => $request->session()->get('info'),
'success' => $resetStatus
]);
}
}