Laravel Data Seeding
Run this command -
php artisan make:seeder UsersTableSeeder
After Create UsersTableSeeder open this file from "database/seed/UsersTableSeeder".
And Edit The Seeder as your need
public function run()
{
DB::table('users')->insert([
'name' => Str::random(10),
'email' => Str::random(10).'@gmail.com',
'password' => bcrypt('secret'),
]);
}
Then Run the seeder "composer dump-autoload" then php artisan db:seed .....
Run specific file - php artisan db:seed --class=UsersTableSeeder
Generate More data types : https://laraveldaily.com/generating-fake-seeds-data-with-faker-package/