Error in exception handler. - Laravel

后端 未结 6 531
小鲜肉
小鲜肉 2020-12-04 06:24

It\'s a Laravel-install related question. I have a public-facing Unix server setup:


ServerAdmin webmaster@mydomain.org
DocumentRoot          


        
6条回答
  •  孤城傲影
    2020-12-04 06:33

    The bandwagon has passed on this a long long time ago, but still I have another piece of advice regarding "Error in exception handler."

    I had this happening to me when I ran "php artisan", which is a good way to assess if your environment is working in general.

    I ran it and it gave me that error, and I couldn't pinpoint the problem till I edited the artisan file in the root directory of my project and add a try catch statement:

    try {
        $artisan = Illuminate\Console\Application::start($app);
    }
    catch (Exception $e)
    {
        dd($e->getMessage());
    }
    

    At which point I finally saw an enlightening message:

    string(41) "Connection refused [tcp://127.0.0.1:6379]"
    

    which in my case was a bad redis configuration, but in your case could be anything.

    I hope this helps someone, or at least next time I get here I will find my own answer.

提交回复
热议问题