When I run php artisan db:seed
artisan Throws an ErrorException. I need some help but i don't know where to start.
Thanks in advance.
Related: https://stackoverflow.com/questions/42031629/composer-auto-generated-wrong-path
[ErrorException]
include(C:\Users\Emiliano Díaz\Repos\ciudadano\vendor\composer/../../atabase/seeds/DatabaseSeeder.php): failed to open stream: No such file or directory
I've updated, deleted, reinstalled Composer and all packages in ./vendor
folder, but the error still there.
I don't know how to reproduce this, and if it's a Composer error or Laravel error.
Mi composer.json.
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"barryvdh/laravel-debugbar": "^2.3",
"barryvdh/laravel-ide-helper": "^2.2",
"laravel/framework": "5.4.*",
"laravel/passport": "^2.0",
"laravel/tinker": "~1.0",
"spatie/laravel-activitylog": "^1.15",
"spatie/laravel-permission": "^2.1"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0",
"doctrine/dbal": "~2.3"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate",
"php artisan key:meta"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan clear-compiled",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": false
}
}
Example of the generated paths in ./vendor/composer/autoload_static.php
.
// ...
'UserTableSeeder' => __DIR__ . '/../..' . '/atabase/seeds/UserTableSeeder.php',
'RoleTableSeeder' => __DIR__ . '/../..' . '/atabase/seeds/RoleTableSeeder.php',
// ...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community