database/seeds/RoleTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run() {
        $roles = [
            'Administrator',
            'Job-Company-Category-Location-Manager',
            'Story-Comment-Manager',
            'Navbar-Manager',
            'Mail-CvCustomer-Alert-Manager',
            'Contact-Advertise-Manager'
        ];
        foreach ($roles as $role){
            Role::create(['name' => $role]);
        }
    }
public function run ( ) { $ roles = [ 'Administrator' , 'Job-Company-Category-Location-Manager' , 'Story-Comment-Manager' , 'Navbar-Manager' , 'Mail-CvCustomer-Alert-Manager' , 'Contact-Advertise-Manager' ] ; foreach ( $ roles as $ role ) { Role :: create ( [ 'name' => $ role ] ) ; } }
Run the database seeds.
Run the database seeds .
// danh sach cac role