database/seeders/UsersTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        User::create([
            'name' => 'ilham',
            'identity_id' => '12345678345',
            'gender' => 1,
            'address' => 'Jl Sultan Hasanuddin',
            'photo' => 'daengweb.png', 
            'email' => 'admin@ilham.id',
            'password' => app('hash')->make('secret'),
            'phone_number' => '085343966997',
            'api_token' => Str::random(40),
            'role' => 0,
            'status' => 1
        ]);
    }
public function run ( ) { User :: create ( [ 'name' => 'ilham' , 'identity_id' => '12345678345' , 'gender' => 1 , 'address' => 'Jl Sultan Hasanuddin' , 'photo' => 'daengweb.png' , 'email' => 'admin@ilham.id' , 'password' => app ( 'hash' ) -> make ( 'secret' ) , 'phone_number' => '085343966997' , 'api_token' => Str :: random ( 40 ) , 'role' => 0 , 'status' => 1 ] ) ; }
Run the database seeds.
Run the database seeds .
//note: tidak ada gambar