Answers for "do i need a seeder with laratrust if i use laravel 8"

PHP
9

laravel make seeder

php artisan make:seeder NameOfTheSeeder
Posted by: Guest on May-15-2020
0

laravel 8 seeding

use App\Models\User;

/**
 * Run the database seeders.
 *
 * @return void
 */
public function run()
{
    User::factory()
            ->times(50)
            ->hasPosts(1)
            ->create();
}
Posted by: Guest on December-04-2020

Code answers related to "do i need a seeder with laratrust if i use laravel 8"

Browse Popular Code Answers by Language