Laravel FatalErrorException in Handler.php line 25

前端 未结 3 697
無奈伤痛
無奈伤痛 2020-12-21 09:20

I\'m getting the following error on random occasions, working on a Laravel 5.1 project on the latest homestead with PHP7

FatalErrorException in Handler.php l         


        
相关标签:
3条回答
  • 2020-12-21 09:41

    I had the same problem when running seeders Notflip . I'm usign Laravel framework 5.0.34. I had this structure:

    App/Models/Users/ (My users's Models here)

    After moving my users's models to the App directory, my seeder problem was solved.

    Check your namespaces and put under consideration your Laravel Framework version before make changes in the framework.

    Hope it helps!

    0 讨论(0)
  • 2020-12-21 09:48

    Solution

    This is actually an error that an exception can't be shown. This is caused by using PHP7.x on an older Laravel project that requires PHP5.6.x

    My solution was to create a new Homestead specific for this project and install php5.6 on that homestead using an older version of laravel/homestead

    0 讨论(0)
  • 2020-12-21 09:55

    This situation occur when laravel project version not compatible or not configured with your local installed version So the laravel not tracking the exact error and instead of showing exact error on line shows that type of errors

    i had same problem in laravel 5.1. After reading this issue, i found out i was using laravel v5.1.0 and that seemed wrong so changed 5.1.0 to 5.1.* and ran composer update. this solved the issue for me.

    0 讨论(0)
提交回复
热议问题