1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 19:04:31 +00:00
Files
education-project/app/Http/Requests/TaskRequest.php
2020-12-10 21:14:51 +07:00

28 lines
463 B
PHP

<?php
namespace App\Http\Requests;
class TaskRequest extends ApiFormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'banktask_id' => 'required|exists:bank_tasks,id',
'deadline' => 'required'
];
}
}