database/seeds/UsersTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $user = App\User::create([
            'name' => 'Omari Sopromadze',
            'email' => 'coma.spurs@gmail.com',
            'password' => bcrypt('coma123'),
            'admin' => 1
        ]);
        App\Profile::create([
            'user_id' => $user->id,
            'avatar' => 'uploads/avatars/user.png',
            'about' => 'lorem ipsum',
            'facebook' => 'facebook.com',
            'youtube' => 'youtube.com'
        ]);
    }
public function run ( ) { $ user = App \ User :: create ( [ 'name' => 'Omari Sopromadze' , 'email' => 'coma.spurs@gmail.com' , 'password' => bcrypt ( 'coma123' ) , 'admin' => 1 ] ) ; App \ Profile :: create ( [ 'user_id' => $ user -> id , 'avatar' => 'uploads/avatars/user.png' , 'about' => 'lorem ipsum' , 'facebook' => 'facebook.com' , 'youtube' => 'youtube.com' ] ) ; }
Run the database seeds.
Run the database seeds .