<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
$this->middleware(['auth', 'verified', '2fa']);
}
* Show the application dashboard.
* @return \Illuminate\Contracts\Support\Renderable
public function index()
return view('home')->with([
'message' => ''
]);
public function status()
return view('status');
public function photo() {
$photos = DB::table('actionfotos')
->join('attraction', 'attraction.id', '=', 'actionfotos.ride')
->where('actionfotos.uuid', '=', Auth::user()->uuid)
->select('actionfotos.base64')
->get()->all();
return view('photo', [
'photos' => $photos