mirror of
https://github.com/dyzulk/santulitam-temp.git
synced 2026-01-26 13:51:55 +07:00
34 lines
908 B
PHP
34 lines
908 B
PHP
<?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']); |