Skip to content

Running artisan db:seed finishes with: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given #32167

Closed
@nekromoff

Description

@nekromoff
  • Laravel Version: 5.8
  • PHP Version: 7.4
  • Database Driver & Version: n/a

Description:

Running artisan db:seed finishes with: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given

Steps To Reproduce:

Use some config/xxx.php file with instruction calling asset:
'name' => '<img src="' . asset('images/some.png') . '" width="20"> XYZ',

Laravel will work correctly, however artisan will crash with the above mentioned error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions