1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 02:44:31 +00:00

Merge branch 'task' into journal

# Conflicts:
#	app/Http/Controllers/Users/StudentController.php
#	app/Models/SchoolClass.php
#	app/Models/Teacher.php
#	composer.json
#	composer.lock
#	database/migrations/2020_12_03_104028_create_bank_task_files_table.php
#	routes/api.php
This commit is contained in:
2020-12-16 23:08:17 +07:00
25 changed files with 608 additions and 68 deletions

View File

@@ -0,0 +1,27 @@
<?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'
];
}
}