database/seeders/CreateUsersSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $adminData =[
               'name'=>'Admin',
               'email'=>'admin@ingot.com',
               'is_admin'=>'1',
               'password'=> Hash::make(('adminadmin')),
               'referral_token'=>'refferalAdminToken123'
            ];
        User::create($adminData);
    }
public function run ( ) { $ adminData = [ 'name' => 'Admin' , 'email' => 'admin@ingot.com' , 'is_admin' => '1' , 'password' => Hash :: make ( ( 'adminadmin' ) ) , 'referral_token' => 'refferalAdminToken123' ] ; User :: create ( $ adminData ) ; }
Run the database seeds.
Run the database seeds .