Version 1.0

This commit is contained in:
2021-01-27 11:05:27 +03:00
parent 6a360ae315
commit b1e0b1cf5b
37 changed files with 6791 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace Database\Seeders;
use App\Helpers\ClassHelper;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$seeders_path = base_path() . '/../database/seeders';
if(file_exists($seeders_path)) {
$files = array_diff(scandir($seeders_path), array('.', '..'));
foreach ($files as $file) {
$this->call(ClassHelper::extract($seeders_path . '/' . $file));
}
}
}
}