Skip to content

Commit

Permalink
Merge pull request #99 from canyongbs/feature/AIDAPP-97-remove-seeded…
Browse files Browse the repository at this point in the history
…-roles

[AIDAPP-97]: Eliminate all currently seeded roles
  • Loading branch information
Orrison authored May 29, 2024
2 parents dd59867 + 85a4c52 commit 276e83e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions database/seeders/NewTenantSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@

use App\Models\Tenant;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Artisan;
use AidingApp\Authorization\Models\Role;
use AidingApp\Division\Database\Seeders\DivisionSeeder;
use AidingApp\Authorization\Console\Commands\SetupRoles;
use AidingApp\Contact\Database\Seeders\ContactSourceSeeder;
use AidingApp\Contact\Database\Seeders\ContactStatusSeeder;
use AidingApp\Consent\Database\Seeders\ConsentAgreementSeeder;
Expand All @@ -59,13 +58,10 @@ public function run(): void
{
$currentTenant = Tenant::current();

Artisan::call(
command: SetupRoles::class,
parameters: [
'--tenant' => $currentTenant->id,
],
outputBuffer: $this->command->getOutput(),
);
Role::create([
'name' => 'authorization.super_admin',
'guard_name' => 'web',
]);

$this->call([
DivisionSeeder::class,
Expand Down

0 comments on commit 276e83e

Please sign in to comment.