laravel วิ่งเมล็ดพันธ์
#All of them
php artisan db:seed
#One class
php artisan db:seed --class=UserSeeder
laravel 8 กำลังปล่อยข้อมูล
use App\Models\User;
/**
* Run the database seeders.
*
* @return void
*/
public function run()
{
User::factory()
->times(50)
->hasPosts(1)
->create();
}