Made role controller, added index and create
This commit is contained in:
@@ -16,6 +16,7 @@ class CreateAlbumsTable extends Migration
|
||||
Schema::create('albums', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->foreignId('user_id')->constrained();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -21,11 +21,13 @@ class UserSeeder extends Seeder
|
||||
|
||||
Log::debug("YEET");
|
||||
|
||||
|
||||
if(User::where("name_first", "admin"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Log::debug("OPRET");
|
||||
$user = new \App\User();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user