what is database seeding and why we use in laravel
i am new in laravel
i do not understand why we are using seeding and what is that and seeding use are in laravel relationship
why we are using please explain what is that seeding
public function run()
{
DB::table('users')->insert([
'name' =>Ste::random(10),
'email' =>Ste::random(10).'@gmail.com',
'password' =>crypt('secret'),
]);
}
}
what is seeder and why should use this seeder.