Y
Y
Y232016-03-23 14:19:31
Laravel
Y23, 2016-03-23 14:19:31

How to solve this problem Catchable fatal error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct()?

Catchable fatal error: Argument 2 passed to
Illuminate\Routing\UrlGenerator::__construct()
must be an instance of Illuminate\Http\Request, null given, called in
C:\xampp\htdocs\laravel52\vendor\laravel\framework\src \Illuminate\Routing\RoutingServiceProvider.php
on line 62 and defined in
C:\xampp\htdocs\laravel52\vendor\laravel\framework\src\Illuminate\Routing\UrlGenerator.php
on line 103

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Muhammad, 2016-03-23
@muhammad_97

The second parameter must be an instance of the Illuminate\Http\Request class, you passed null. It's hard to say anything without code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question