afce441001
Brought over the old form for adding new location to the db and the plugged everything back up using Laravel's eloquent orm (which is pretty fucking sweet) to re-active that process NOTE: larvel gets a twitchy when sequencing isn't explicitly set some minor edits needed to be made to the development DB to prevent a null id error when inserting new records. this should be done to production when it's ready as well
29 lines
677 B
PHP
29 lines
677 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
class DenController extends Controller
|
|
{
|
|
//
|
|
public function start(Request $request)
|
|
{
|
|
$member = Auth::user();
|
|
return view('back.start', ['handle' => $member->handle]);
|
|
}
|
|
|
|
public function member(Request $request)
|
|
{
|
|
$member = Auth::user();
|
|
return view('back.member', ['handle' => $member->handle]);
|
|
}
|
|
|
|
public function location(Request $request, string $action = "index")
|
|
{
|
|
$member = Auth::user();
|
|
return view('back.locations', ['handle' => $member->handle, "action" => $action]);
|
|
}
|
|
}
|