Create constant CORE_PATH and rework project loaders

This commit is contained in:
2021-01-27 12:22:12 +03:00
parent 04e766af45
commit 23cb69919c
5 changed files with 10 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
$seeders_path = base_path() . '/../../../database/seeders';
$seeders_path = CORE_PATH . '/database/seeders';
if(file_exists($seeders_path)) {
$files = array_diff(scandir($seeders_path), array('.', '..'));