Neuaufbau des Repositories

This commit is contained in:
2026-04-13 14:01:19 +02:00
parent 4a7638d5e9
commit 35b5f39843
14 changed files with 494 additions and 13 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
$user = \App\Models\User::first();
if ($user) {
$user->role = 'admin';
$user->save();
echo "User {$user->email} is now an admin!\n";
} else {
echo "No user found.\n";
}