Laravel_api/app/Http/Requests/Api/FormRequest.php

16 lines
316 B
PHP
Raw Permalink Normal View History

2019-03-01 14:08:34 +08:00
<?php
namespace App\Http\Requests\Api;
use Illuminate\Foundation\Http\FormRequest as BaseFormRequest;
class FormRequest extends BaseFormRequest
{
public function authorize()
{
2019-03-24 13:20:34 +08:00
//false代表权限验证不通过返回403错误
//true代表权限认证通过
2019-03-01 14:08:34 +08:00
return true;
}
}