• Developer New

    Saturday, March 25, 2017

    how to create seed in laravel



    use Illuminate\Database\Seeder;
    use Legend\User;
    
    class UserTableSeeder extends Seeder {
    
      public function run()
      {
        
        User::create(array(
          'email' => 'chris@chrisblackwell.me',
          'password' => 'bassin90',
          'first_name' => 'Chris',
          'last_name' => 'Blackwell',
          
        ));
      }
    
    }

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel