search

Home  >  Q&A  >  body text

laravel error

Fatal error:  Declaration of Illuminate\Container\Container::make($abstract) must be compatible with Illuminate\Contracts\Container\Container::make($abstract, array $parameters = Array) in D:\myphp_www\PHPTutorial\WWW\laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 13

如何改?????

急求,谢谢了

逆时针逆时针2192 days ago1464

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2018-11-15 22:19:20

    Laravel manages dependencies between objects through containers. Looking at the prompts, it should be an error in obtaining an instance, because the Container::make() method is used to create instances. Looking at the code, I can’t tell you. Which object has the problem? You can create a listener to locate the error

    reply
    0
  • Cancelreply