Skip to content

Commit

Permalink
fix install command
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Apr 24, 2024
1 parent 185a668 commit b82917d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/TomatoRolesInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public function handle(): void
]);

$role = Role::where('name', 'admin')->first();
$mainAccount->roles()->attach([$role->id]);
$mainAccount->roles()->sync([$role->id]);
}
else {
$role = Role::where('name', 'admin')->first();
$mainAccount->roles()->attach([$role->id]);
$mainAccount->roles()->sync([$role->id]);
}
$this->info('🍅 Try to login /admin/login with user "admin@admin.com" and password "password"');
$this->info('🍅 Tomato Roles installed successfully.');
Expand Down

0 comments on commit b82917d

Please sign in to comment.