新建中间件php artisan make:middleware EnableCrossRequestMiddlewareapp/Http/Kernel.php 文件下新增 protected...