diff --git a/database/migrations/2023_05_25_000000_create_site_settings_table.php b/database/migrations/2023_05_25_000000_create_site_settings_table.php index ccded418..b7c2adca 100644 --- a/database/migrations/2023_05_25_000000_create_site_settings_table.php +++ b/database/migrations/2023_05_25_000000_create_site_settings_table.php @@ -10,12 +10,22 @@ public function up() { Schema::create('site_settings', function (Blueprint $table) { $table->id(); - $table->string('name'); - $table->string('currency'); - $table->string('default_language'); - $table->text('address'); - $table->string('country'); - $table->string('email'); + $table->string('name')->nullable(); + $table->string('currency')->nullable(); + $table->string('default_language')->nullable(); + $table->text('address')->nullable(); + $table->string('country')->nullable(); + $table->string('email')->nullable(); + $table->string('phone_01')->nullable(); + $table->string('phone_02')->nullable(); + $table->string('phone_03')->nullable(); + $table->string('phone_04')->nullable(); + $table->string('facebook')->nullable(); + $table->string('twitter')->nullable(); + $table->string('github')->nullable(); + $table->string('youtube')->nullable(); + $table->decimal('sales_commission_percentage', 5, 2)->default(1.00); + $table->decimal('lettings_commission_percentage', 5, 2)->default(8.00); $table->timestamps(); }); } diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 0b856e54..0d117644 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -14,6 +14,7 @@ class DatabaseSeeder extends Seeder public function run(): void { $this->call([ + SiteSettingsSeeder::class, MenuSeeder::class, RolesSeeder::class, TeamSeeder::class, diff --git a/routes/web.php b/routes/web.php index ea79e27a..5de5c635 100644 --- a/routes/web.php +++ b/routes/web.php @@ -17,9 +17,9 @@ Route::get('/', fn () => view('welcome')); -Route::redirect('/login', '/app/login')->name('login'); +// Route::redirect('/login', '/app/login')->name('login'); -Route::redirect('/register', '/app/register')->name('register'); +// Route::redirect('/register', '/app/register')->name('register'); Route::redirect('/dashboard', '/app')->name('dashboard');