3
0
Fork 0
This repository has been archived on 2024-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
ThemeParkPlus-Panel/app/Http/Controllers/HomeController.php
2021-06-27 21:01:43 +02:00

56 lines
1.1 KiB
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redirect;
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
]);
}
public function store()
{
return Redirect::to(env('STORE_URL', 'https://sbdplugins.nl'));
}
}