database/seeders/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        User::factory(10)->create();
        Brand::factory(10)->create();
        Product::factory(10)->create();
        Category::create([
            'name' => "Root"
        ]);
    }
public function run ( ) { User :: factory ( 10 ) -> create ( ) ; Brand :: factory ( 10 ) -> create ( ) ; Product :: factory ( 10 ) -> create ( ) ; Category :: create ( [ 'name' => " Root " ] ) ; }
Seed the application's database.
Seed the application ' s database .