database/seeders/PermissionsTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $users = [
            [
                'name'          => 'Admin',
                'role_id'       => 1,
                'is_active'     => 1,
                'email'         => 'admin@gmail.com',
                'password'      => bcrypt('12345678'),
                'created_at'    => Carbon::now()->toDateTimeString(),
                'updated_at'    => Carbon::now()->toDateTimeString(),
            ]
        ];
        DB::table('users')->insert($users);
    }
public function run ( ) { $ users = [ [ 'name' => 'Admin' , 'role_id' => 1 , 'is_active' => 1 , 'email' => 'admin@gmail.com' , 'password' => bcrypt ( '12345678' ) , 'created_at' => Carbon :: now ( ) -> toDateTimeString ( ) , 'updated_at' => Carbon :: now ( ) -> toDateTimeString ( ) , ] ] ; DB :: table ( 'users' ) -> insert ( $ users ) ; }
Run the database seeds.
Run the database seeds .