database/seeds/RolesTableSeeder.php
/**
     * Create base role admin and author
     *
     * @return void
     */
Create base role admin and author
@return void
Create base role admin and author @return void
public function run()
    {
        DB::table('roles')->insert([
            'name' => 'admin', 
        ]);
        DB::table('roles')->insert([
            'name' => 'author', 
        ]);
    }
public function run ( ) { DB :: table ( 'roles' ) -> insert ( [ 'name' => 'admin' , ] ) ; DB :: table ( 'roles' ) -> insert ( [ 'name' => 'author' , ] ) ; }
Create base role admin and author
 @return void
Create base role admin and author @return void
//Admin // Admin //Author // Author