1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 10:54:31 +00:00
Files
education-project/app/Http/Requests/SubjectRequest.php
2020-12-03 23:33:04 +07:00

20 lines
307 B
PHP

<?php
namespace App\Http\Requests;
class SubjectRequest extends ApiFormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required|unique:subjects',
];
}
}