mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Модуль журнала
This commit is contained in:
@@ -14,6 +14,8 @@ class LoginRequest extends UserRequest
|
||||
*/
|
||||
public function specific()
|
||||
{
|
||||
return [];
|
||||
return [
|
||||
'remember_me' => 'integer'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
25
app/Http/Requests/JournalRequest.php
Normal file
25
app/Http/Requests/JournalRequest.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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',
|
||||
'date' => 'integer',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user