I\'m probably misunderstanding exactly how this works, but what\'s the best way to accomplish this? I have something in mind but it seems quite hacky.
I have a set o
You could run a check on the current environment in your seeder file, and seed as needed
<?php
class DatabaseSeeder extends Seeder {
public function run()
{
Eloquent::unguard();
if (App::environment() === 'production')
{
$this->call('ProductionSeeder');
}
else
{
$this->call('StagingSeeder');
}
}
}