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
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\FrontIndexController;
|
|
use App\Http\Controllers\AuthController;
|
|
use App\Http\Controllers\DenController;
|
|
use App\Http\Controllers\LocationController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
//front
|
|
Route::get("/", [FrontIndexController::class, 'start']);
|
|
|
|
//auth
|
|
Route::get("/login", [AuthController::class, 'showLogin']);
|
|
Route::post("/login", [AuthController::class, 'memberAuth']);
|
|
Route::get("/logout", [AuthController::class, 'leave']);
|
|
|
|
//back
|
|
Route::group(['prefix' => 'den', 'middleware' => 'member.check'], function () {
|
|
Route::get("/", [DenController::class, 'start']);
|
|
Route::get("/member", [DenController::class, 'member']);
|
|
Route::get("/locations/{action?}", [DenController::class, 'location']);
|
|
Route::post("/locations/add", [LocationController::class, 'addLocation']);
|
|
});
|