database/seeds/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        User::create([
            'name' => 'admin',
            'email' => 'admin@mail.com',
            'role' => '2',
            'plan' => '0',
            'paid' => '1',
            'password' => Hash::make('admin1234'),
        ]);
        User::create([
            'name' => 'userone',
            'email' => 'user@mail.com',
            'role' => '1',
            'plan' => '1',
            'paid' => '1',
            'password' => Hash::make('user1234'),
        ]);
        Plan::create([
            'period'    => '1',
            'price'     => '11',
            'name'     => 'Basic'
        ]);
    }
public function run ( ) { User :: create ( [ 'name' => 'admin' , 'email' => 'admin@mail.com' , 'role' => '2' , 'plan' => '0' , 'paid' => '1' , 'password' => Hash :: make ( 'admin1234' ) , ] ) ; User :: create ( [ 'name' => 'userone' , 'email' => 'user@mail.com' , 'role' => '1' , 'plan' => '1' , 'paid' => '1' , 'password' => Hash :: make ( 'user1234' ) , ] ) ; Plan :: create ( [ 'period' => '1' , 'price' => '11' , 'name' => 'Basic' ] ) ; }
Seed the application's database.
Seed the application ' s database .