database/seeds/AdminTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $admins = array(
            [
                'name' => 'saman rana',
                'phone' => '234',
                'email' => 'saman@system.com',
                'password' => Hash::make('password'),
            ],
        );
        foreach ($admins as $admin) {
            \App\Models\Admin::create($admin);
        }
    }
public function run ( ) { $ admins = array ( [ 'name' => 'saman rana' , 'phone' => '234' , 'email' => 'saman@system.com' , 'password' => Hash :: make ( 'password' ) , ] , ) ; foreach ( $ admins as $ admin ) { \ App \ Models \ Admin :: create ( $ admin ) ; } }
Run the database seeds.
Run the database seeds .