Commit 9be57973 authored by Waterfox's avatar Waterfox
Browse files

Update table name and add authentication middleware to dives route

parent ee07131d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@

class DivingSignUpModel extends Model
{
    protected $table = 'car_registration';
    protected $table = 'CAR_REGISTRATION';
    protected $primaryKey = ['us_id', 'ds_code'];
    protected $keyType = ['int', 'string'];
    protected $fillable = ['US_ID', 'DS_CODE', 'REG_ACTIVE'];
+2 −1
Original line number Diff line number Diff line
@@ -56,7 +56,8 @@
    return view('welcome');
})->name('homepage');

Route::get('/dives', [DivingSignUpController::class, 'show'])->name('dives');

Route::middleware('auth:sanctum')->get('/dives', [DivingSignUpController::class, 'show'])->name('dives');

Route::get('/test', function()
{