In previous Laravel version I use this in tinker:
php artisan tinker
factory(App\Banana::class, 3)->create();
But in Laravel 8, it gives this error: `PHP Error: Class 'Database/Factories/bananaFactory' not found
How to create dummy data in Laravel 8 using tinker please? Thank you.
You can try by this steps:
Important: Here is document that related to create factory:
https://laravel.com/docs/8.x/database-testing#creating-factories