ldc-boutique-cnc/app/Http/Requests/Bo/XmlIncos/SearchXmlInco.php
Jérémy Munsch f99e259bd5
Tons of fixes Refonte SYNC 1
- Authentification System OK
2022-11-16 12:47:41 +01:00

30 lines
564 B
PHP

<?php
namespace App\Http\Requests\Bo\XmlIncos;
use Illuminate\Foundation\Http\FormRequest;
class SearchXmlInco extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
{
return auth('backend')->check() and $this->ajax();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'term' => 'required|string'
];
}
}