2021-09-17 23:48:30 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
2021-09-21 22:44:25 +02:00
|
|
|
class GroupAssignRequest extends FormRequest
|
2021-09-17 23:48:30 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function authorize()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function rules()
|
|
|
|
{
|
|
|
|
return [
|
2021-09-21 22:44:25 +02:00
|
|
|
'ids' => 'required|array',
|
|
|
|
'ids.*' => 'integer'
|
2021-09-17 23:48:30 +02:00
|
|
|
];
|
|
|
|
}
|
2021-09-21 22:44:25 +02:00
|
|
|
}
|