laravel降低错误等级

只需要再app/Providers/AppServiceProvider文件夹下添加等级信息即可:

<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
        error_reporting(E_ALL^E_WARNING^E_NOTICE);
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}

 

posted @ 2020-02-17 21:40  明明一颗大白菜  阅读(819)  评论(0编辑  收藏  举报
<-- -->