0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Uncaught TypeError: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request

0
Posted at

原因

大きく3つ

.envがおかしい

envに、空白があるとマズイ

before

APP_NAME=EXAMPLE NAME

after

APP_NAME="EXAMPLE NAME"

configにurl()かasset()がある

configフォルダを見て、パス指定を直す

キャッシュを消す

毎回キャッシュがうざい

composer dump-autoload
php artisan clear-compiled
php artisan optimize
php artisan config:cache

これでダメなら

cd bootstrap/cache //laravelのrootディレクトリ
rm -rf *.php
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?