Guideline

Guideline

All the forms are based on same name of controller.

For Doctor form you can found in the resources\views\Doctors folder has all view, list, edit and add doctor blade files. And it will be validated in the app\Http\Controllers\DoctorController.php file. Also same for other users. You can use the below code for validation for your custom code.

$request->validate([ 'first_name' => ['required', 'string', 'max:255'], 'middle_name' => ['required', 'string', 'max:255'], 'last_name' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 'password' => ['required', 'string', 'min:8', 'confirmed'], 'dob' => ['required', 'date'], 'gender' => ['required'], 'course' => ['required'], 'contact_no' => ['required', 'regex:/^([0-9\s\-\+\(\)]*)$/', 'max:12'], 'address' => ['required', 'string', 'max:500'], 'profile_pic' => ['required', 'image', 'mimes:jpg,jpeg,png,gif,svg', 'max:1024'], ]);
And you can set the alert message in controller like the below sample.
with('success', 'Doctor created successfully!'); with('error', 'Something went wrong!');
And you can set the alert message in script like the below sample.
toastr.success('Doctor created successfully!'); toastr.error('Something went wrong!');
SCSS: We suggest you do not change any scss files from the assets/scss/ folders because getting new updates will break your SCSS changes if any you have made. We strongly suggest you use a custom.scss file and use that instead of overwriting any theme's custom scss files.
2025 © Doctorly.
Design & Develop by Themesbrand