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::factory()->count(50)->create();
        $user = User::find(1);
        $user->name = 'wangfei';
        $user->email = '1036101012@qq.com';
        $user->is_admin = true;
        $user->save();
    }
public function run ( ) { User :: factory ( ) -> count ( 50 ) -> create ( ) ; $ user = User :: find ( 1 ) ; $ user -> name = 'wangfei' ; $ user -> email = '1036101012@qq.com' ; $ user -> is_admin = true ; $ user -> save ( ) ; }
Run the database seeds.
Run the database seeds .