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.
27 lines
755 B
PHP
27 lines
755 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin\AcademicClasses;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class ScheduleRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'course_class_id' => ['required', 'integer', Rule::exists('course_classes', 'id')],
|
|
'day_of_week' => ['nullable', 'string', 'max:15'],
|
|
'start_time' => ['nullable', 'date_format:H:i'],
|
|
'end_time' => ['nullable', 'date_format:H:i', 'after:start_time'],
|
|
'room' => ['nullable', 'string', 'max:20'],
|
|
'online_link' => ['nullable', 'string', 'max:255', 'url'],
|
|
];
|
|
}
|
|
}
|