first commit

This commit is contained in:
Muhammad Herdy Iskandar
2024-07-26 10:33:44 +00:00
commit 7117a42b13
399 changed files with 19527 additions and 0 deletions

34
routes/web.php Normal file
View 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']);