Some checks failed
tests / ci (pull_request) Has been cancelled
- Implemented academic advising logs functionality with create, edit, and delete capabilities. - Created UI components for displaying academic advising logs in a data table format. - Added letter requests management with similar CRUD operations and UI components. - Refactored routes to organize academic classes, announcements, finances, and services under appropriate namespaces.
26 lines
662 B
PHP
26 lines
662 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin\Services;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class AcademicAdvisingLogRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'student_id' => ['required', 'integer', Rule::exists('students', 'id')],
|
|
'lecturer_id' => ['required', 'integer', Rule::exists('lecturers', 'id')],
|
|
'topic' => ['nullable', 'string', 'max:150'],
|
|
'notes' => ['nullable', 'string'],
|
|
'session_date' => ['nullable', 'date'],
|
|
];
|
|
}
|
|
}
|