mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 10:54:31 +00:00
26 lines
565 B
PHP
26 lines
565 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class JournalRequest extends ApiFormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'student_id' => 'required|integer',
|
|
'teacher_id' => 'required|integer',
|
|
'subject_id' => 'required|integer',
|
|
'score' => 'required|integer',
|
|
'comment' => 'string|nullable',
|
|
'date' => 'integer',
|
|
];
|
|
}
|
|
}
|