mirror of
https://github.com/dyzulk/santulitam.git
synced 2026-01-26 21:41:52 +07:00
First Commit
This commit is contained in:
34
routes/web.php
Normal file
34
routes/web.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\QrGeneratorController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', function () {
|
||||
// return view('welcome');
|
||||
return redirect('/central/');
|
||||
});
|
||||
|
||||
Route::get('/u', function () {
|
||||
$u = User::all();
|
||||
// $u = dd(fn() => auth()->user()->user_role_id === 1);
|
||||
// $u = auth()->user()->user_role_id;
|
||||
return $u;
|
||||
});
|
||||
|
||||
Route::get('/phpinfo', function () {
|
||||
phpinfo();
|
||||
});
|
||||
|
||||
Route::get('/qr/student/{value}', [QrGeneratorController::class, 'student']);
|
||||
Reference in New Issue
Block a user