- Created SubClassificationPolicy to manage authorization for SubClassification actions. - Created SubLocationPolicy to manage authorization for SubLocation actions. - Created UserPolicy to manage authorization for User actions. - Integrate Filament Shield for role and permission management - Updated DashboardPanelProvider to include FilamentShieldPlugin. - Added filament-shield package to composer.json and updated composer.lock. - Created filament-shield.php configuration file for Shield settings. - Created permission.php configuration file for Spatie permissions. - Added migration for creating permission tables. - Created ShieldSeeder to seed roles and permissions. - Updated DatabaseSeeder to include ShieldSeeder. - Updated UserSeeder to assign the Developer role to the created user.
23 lines
394 B
PHP
23 lines
394 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
use WithoutModelEvents;
|
|
|
|
/**
|
|
* Seed the application's database.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$this->call([
|
|
ShieldSeeder::class,
|
|
UserSeeder::class,
|
|
]);
|
|
}
|
|
}
|