Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp
Conflicts: skolehjem/routes/web.php
This commit is contained in:
@@ -15,6 +15,7 @@ class CreateMenuPlans extends Migration
|
||||
{
|
||||
Schema::create('menu_plans', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('week', 2);
|
||||
$table->string('monday', 255);
|
||||
$table->string('tuesday', 255);
|
||||
$table->string('wednesday', 255);
|
||||
|
||||
@@ -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