Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

Commit

Permalink
grouping search doctor route to be 1 prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
FauzanAr committed Apr 14, 2019
1 parent fce62db commit 5f4c919
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,16 @@
});


Route::get('/listdoctors/{specialty}', 'DoctorController@show')->name('list.doctorSpecialty');
Route::get('/listdoctors/viewdoctor/{id}', 'DoctorController@showDoctor')->name('show.doctor');
Route::post('/searchdoctor/cari','DoctorController@searchDoctor')->name('search.doctors');
Route::prefix('searchdoctor')->group(function(){

Route::get('/listdoctors/{specialty}', 'DoctorController@show')->name('list.doctorSpecialty');
Route::get('/listdoctors/viewdoctor/{id}', 'DoctorController@showDoctor')->name('show.doctor');
Route::post('/cari','DoctorController@searchDoctor')->name('search.doctors');
Route::get('/listdoctors/cari', 'SpecializationController@indexUser')->name('list.doctor');
Route::post('/listdoctors/cari-spesialis', 'SpecializationController@searchSpecialty');
Route::get('/','SpecializationController@indexSearch')->name('search.doctor');

});

Route::get('/viewhospital', function() {
return view('viewhospital');
Expand All @@ -58,10 +65,6 @@
// Route::get('/lihatsemuadokter', function() {
// return view('LSdoctor');
// });
Route::get('/listdoctors', 'SpecializationController@indexUser')->name('list.doctor');
Route::post('/listdoctors/cari', 'SpecializationController@searchSpecialty');
Route::get('/searchdoctor','SpecializationController@indexSearch')->name('search.doctor');

// Route::get('/SearchDokter', function() {
// return view('SearchDokter');
// });
Expand Down

0 comments on commit 5f4c919

Please sign in to comment.