database/seeders/MarketingSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $user = User::create([
            'username' => 'Mark',
            'email' => 'marketing@sscworks.com',
            'password' => Hash::make('mark123'),
            'role' => 'marketing'
        ]);
        Marketing::create([
            'user_id' => $user->id,
            'nama' => 'Mark',
            'tanggal_lahir' => '1997-10-02',
            'no_hp' => '092172171883',
            'alamat' => 'mark one',
            'gender' => 'L'
        ]);
    }
public function run ( ) { $ user = User :: create ( [ 'username' => 'Mark' , 'email' => 'marketing@sscworks.com' , 'password' => Hash :: make ( 'mark123' ) , 'role' => 'marketing' ] ) ; Marketing :: create ( [ 'user_id' => $ user -> id , 'nama' => 'Mark' , 'tanggal_lahir' => '1997-10-02' , 'no_hp' => '092172171883' , 'alamat' => 'mark one' , 'gender' => 'L' ] ) ; }
Run the database seeds.
Run the database seeds .