middleware(['auth', 'verified', '2fa']); } /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index() { if(!env('HOME_PAGE', false)) return redirect()->route('status'); return view('home')->with([ 'message' => \App\Message::orderByDesc('id')->first() ]); } public function status() { return view('status'); } public function photo() { $photos = DB::table('actionfotos') ->join('attractions', 'attractions.id', '=', 'actionfotos.ride') ->where('actionfotos.uuid', '=', Auth::user()->uuid) ->select('actionfotos.base64') ->get()->all(); return view('photo', [ 'photos' => $photos ]); } public function store() { return Redirect::to(env('STORE_URL', 'https://sbdplugins.nl')); } }