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;
|
|
|
|
|
}
|
|
|
|
|
}
|