Laravel Error: Method Illuminate\View\View::__toString() must not throw an exception

前端 未结 4 1230
忘了有多久
忘了有多久 2020-12-03 04:13

Have you seen this lovely error while working in Laravel?

Method Illuminate\\View\\View::__toString() must not throw an exception

I have s

4条回答
  •  半阙折子戏
    2020-12-03 05:04

    a similar error is:

    FatalErrorException in FooController.php line 0: Method App\Models\Foo::__toString() must not throw an exception

    and it was just a bad assignment: $foo.= new Foo;

    instead of: $foo = new Foo;

提交回复
热议问题