Support the ongoing development of Laravel.io →
Installation Configuration Packages
  • Laravel Version: 5.4.26
  • PHP Version: 7.1.1 (cli) (built: Jan 18 2017 18:51:14)
  • Database Driver & Version: MariaDB 10.1.21
  • Composer version: 1.4.2
  • OS: 10.0.15063 Compilación 15063 x64

Description:

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.

Steps To Reproduce:

I don't know how to reproduce this, and if it's a Composer error or Laravel error.

Related Files

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',
// ...
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.