Skip to content

Commit

Permalink
login fix and site helper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Raza9798 committed Aug 28, 2024
1 parent ec18401 commit d558eb2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down
1 change: 1 addition & 0 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class DatabaseSeeder extends Seeder
public function run(): void
{
$this->call([
SiteSettingsSeeder::class,
MenuSeeder::class,
RolesSeeder::class,
TeamSeeder::class,
Expand Down
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit d558eb2

Please sign in to comment.