database/seeders/PermissionTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $permissions = [
            "Ajouter structure",
            "Voir list structure",
            "Suprimer structure",
            "Modifier structure",
            "Ajouter investissement",
            "Modifier investissement",
            "Voir list investissement",
            "Valider investissement",
            "Rejetter investissement",
            "Ajouter utilisateur",
            "Ajouter point focal",
            "Modifier utilisateur",
            "Voir list utilisateur",
            "Suprimer utilisateur",
            "Activer utilisateur",
             "Modifier role",
         ];
         foreach ($permissions as $permission) {
              Permission::create(["name" => $permission]);
         }
    }
public function run ( ) { $ permissions = [ " Ajouter structure " , " Voir list structure " , " Suprimer structure " , " Modifier structure " , " Ajouter investissement " , " Modifier investissement " , " Voir list investissement " , " Valider investissement " , " Rejetter investissement " , " Ajouter utilisateur " , " Ajouter point focal " , " Modifier utilisateur " , " Voir list utilisateur " , " Suprimer utilisateur " , " Activer utilisateur " , " Modifier role " , ] ; foreach ( $ permissions as $ permission ) { Permission :: create ( [ " name " => $ permission ] ) ; } }
Run the database seeds.
Run the database seeds .