database/seeds/RolesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Role::truncate();
        $roles = [
            [
                'name' => 'Admin'
            ],
            [
                'name' => 'Owner'
            ],
            [
                'name' => 'User'
            ]
        ];
        foreach ($roles as $value) {
            Role::create($value);
        }
    }
public function run ( ) { Role :: truncate ( ) ; $ roles = [ [ 'name' => 'Admin' ] , [ 'name' => 'Owner' ] , [ 'name' => 'User' ] ] ; foreach ( $ roles as $ value ) { Role :: create ( $ value ) ; } }
Run the database seeds.
Run the database seeds .