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-07 21:44:28 +01:00
|
|
|
use App\Facade\UserConfig;
|
2016-09-09 16:59:13 +01:00
|
|
|
use App\Helpers\DbHelper;
|
2016-09-01 16:23:39 +01:00
|
|
|
use App\Http\Controllers\Controller;
|
2016-09-06 14:45:51 +01:00
|
|
|
use Illuminate\Http\Request;
|
2016-09-09 16:59:13 +01:00
|
|
|
use Illuminate\Support\Facades\Auth;
|
2016-09-01 16:23:39 +01:00
|
|
|
|
|
|
|
class DefaultController extends Controller
|
|
|
|
{
|
2016-09-06 14:45:51 +01:00
|
|
|
public function index(Request $request)
|
2016-09-01 16:23:39 +01:00
|
|
|
{
|
2016-09-09 16:59:13 +01:00
|
|
|
$albums = DbHelper::getAlbumsForCurrentUser();
|
2016-09-03 22:13:05 +01:00
|
|
|
|
|
|
|
return Theme::render('gallery.index', [
|
2016-09-06 14:45:51 +01:00
|
|
|
'albums' => $albums,
|
|
|
|
'info' => $request->session()->get('info')
|
2016-09-03 22:13:05 +01:00
|
|
|
]);
|
2016-09-01 16:23:39 +01:00
|
|
|
}
|
|
|
|
}
|