ldc-legaulois/app/Http/Requests/UpdateReductionRequest.php

30 lines
528 B
PHP
Raw Permalink Normal View History

2021-10-13 12:06:41 +02:00
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateReductionRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
2022-02-10 16:14:58 +01:00
* @return boolean
2021-10-13 12:06:41 +02:00
*/
public function authorize()
{
return auth()->check() and request()->ajax();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
2022-02-10 16:14:58 +01:00
];
2021-10-13 12:06:41 +02:00
}
}