Fix DatabaseSeeder loading issues in CLI and composer autoload
This commit is contained in:
2
cli.php
2
cli.php
@@ -18,6 +18,8 @@ if (file_exists($localEnv)) {
|
||||
$dotenv->load();
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/database/seeds/DatabaseSeeder.php';
|
||||
|
||||
use App\Core\Container;
|
||||
use App\Services\Database\Connection;
|
||||
use App\Services\Database\MigrationRunner;
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "app/"
|
||||
"App\\": "app/",
|
||||
"Database\\": "database/"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
||||
Reference in New Issue
Block a user