database/seeds/UsersTableSeeder.php
/**
     * Create fake data fro Admin e Author users
     *
     * @return void
     */
Create fake data fro Admin e Author users
@return void
Create fake data fro Admin e Author users @return void
public function run()
    {
        DB::table('users')->insert([
            'role_id' => '1', 
            'name' => 'Joe',
            'last_name' => 'Admin',
            'email' => 'admin@email.lol',
            'is_active' => 1,
            'password' => bcrypt('admin')
        ]);
        DB::table('users')->insert([
            'role_id' => '2', 
            'name' => 'John',
            'last_name' => 'Author',
            'email' => 'author@email.lol',
            'is_active' => 1,
            'password' => bcrypt('author')
        ]);
        DB::table('users')->insert([
            'role_id' => '2', 
            'name' => 'Jack',
            'last_name' => 'Author 2',
            'email' => 'author2@email.lol',
            'is_active' => 1,
            'password' => bcrypt('author2')
        ]);
    }
public function run ( ) { DB :: table ( 'users' ) -> insert ( [ 'role_id' => '1' , 'name' => 'Joe' , 'last_name' => 'Admin' , 'email' => 'admin@email.lol' , 'is_active' => 1 , 'password' => bcrypt ( 'admin' ) ] ) ; DB :: table ( 'users' ) -> insert ( [ 'role_id' => '2' , 'name' => 'John' , 'last_name' => 'Author' , 'email' => 'author@email.lol' , 'is_active' => 1 , 'password' => bcrypt ( 'author' ) ] ) ; DB :: table ( 'users' ) -> insert ( [ 'role_id' => '2' , 'name' => 'Jack' , 'last_name' => 'Author 2' , 'email' => 'author2@email.lol' , 'is_active' => 1 , 'password' => bcrypt ( 'author2' ) ] ) ; }
Create fake data fro Admin e Author users
 @return void
Create fake data fro Admin e Author users @return void
//Admin user // Admin //Author user // Admin //Author user // Admin