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()
    {
        \App\Models\Santri::factory(10)->create();
        \App\Models\Toko::factory(4)->create();
        $this->call([
            RelasiSeeder::class
        ]);
    }
public function run ( ) { \ App \ Models \ Santri :: factory ( 10 ) -> create ( ) ; \ App \ Models \ Toko :: factory ( 4 ) -> create ( ) ; $ this -> call ( [ RelasiSeeder :: class ] ) ; }
Seed the application's database.
Seed the application ' s database .
// \App\Models\User::factory(10)->create();