database/seeds/GuestbooksTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('guestbooks')->delete();
        guestbooks::create([
            'email' => 'aku@gmail.com',
            'nama' => 'yoibro',
            'pesan' => 'gass'
        ]);
        guestbooks::create([
            'email' => 'kamu@gmail.com',
            'nama' => 'okebro',
            'pesan' => 'gass poolll'
        ]);
    }
public function run ( ) { DB :: table ( 'guestbooks' ) -> delete ( ) ; guestbooks :: create ( [ 'email' => 'aku@gmail.com' , 'nama' => 'yoibro' , 'pesan' => 'gass' ] ) ; guestbooks :: create ( [ 'email' => 'kamu@gmail.com' , 'nama' => 'okebro' , 'pesan' => 'gass poolll' ] ) ; }
Run the database seeds.
Run the database seeds .