L
L
lynnikvadim2015-07-23 16:07:51
Laravel
lynnikvadim, 2015-07-23 16:07:51

What is the bug in Laravel 5?

When I try to create a controller or update a composer, I get this:

[RuntimeException]                                                           
  Error Output: PHP Catchable fatal error:  Argument 2 passed to Illuminate\R  
  outing\UrlGenerator::__construct() must be an instance of Illuminate\Http\R  
  equest, null given, called in /var/www/html/sochi/vendor/laravel/framework/  
  src/Illuminate/Routing/RoutingServiceProvider.php on line 56 and defined in  
   /var/www/html/sochi/vendor/laravel/framework/src/Illuminate/Routing/UrlGen  
  erator.php on line 95

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dinar Garipov, 2015-07-23
@gaaarfild

Check routes in /app/Http/routes.php

I
Ilya, 2015-07-23
@vorozhbit

98996-clip-25kb.png
https://laracasts.com/discuss/channels/general-dis...

@etelford, if you already ran composer dump-autoload and it still doesn't work, create a new Laravel project and compare differences.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question