File: D:/HostingSpaces/SBogers10/otium.komma.nl/database/seeds/DatabaseSeeder.php
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Config;
/***
* This seeder is used for developers.
*
* Class DatabaseSeeder
*/
class DatabaseSeeder extends Seeder
{
/**
* Keep track of the memory usage.
*
* @var bool
*/
private bool $trackMemoryUsage = false;
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//Prerequisist seeders must run first
$this->call(ButtonSeeder::class);
$this->call(ServicepointSeeder::class);
//Main seeders
$this->call(DefaultSiteDevelopmentPageSeeder::class);
//$this->call(DefaultSitePageComponentSeeder::class);
$this->call(ServiceSeeder::class);
$this->call(ProjectSeeder::class);
$this->call(PartnerSeeder::class);
$this->call(TeamMemberSeeder::class);
$this->call(PostSeeder::class);
$this->call(VacancySeeder::class);
$this->call(TestimonialSeeder::class);
$this->call(WebsiteConfigSeeder::class);
$this->call(RemoveGermanLanguageFromSite::class);
//Relation seeders
// $this->call(ButtonRelationSeeder::class);
$this->call(CorrectRoutesForWildcardModelsSeeder::class);
}
/**
* @param array|string $class
* @param bool $silent
* @return DatabaseSeeder
*/
public function call($class, $silent = false)
{
if($this->trackMemoryUsage) $this->command->info('Memory usage: ' . round((memory_get_usage() / 1024 / 1024 ), 2).' MB');
return parent::call($class, $silent);
}
}