Commit 42e4f27b by Juliper

no message

parent 50d140f3
...@@ -354,7 +354,7 @@ class CustomerController extends Controller ...@@ -354,7 +354,7 @@ class CustomerController extends Controller
]); ]);
return redirect()->action('GuestController@detailhomestay', ['id' => $request['id']]); return redirect('customerHistory');
} }
......
...@@ -18,7 +18,7 @@ class Owner ...@@ -18,7 +18,7 @@ class Owner
{ {
if(Auth::check()){ if(Auth::check()){
if(Auth::user()->role != 'Owner'){ if(Auth::user()->role != 'Owner'){
dd('masuk'); dd('masuk di midle gan');
if(Auth::user()->role == 'Customer'){ if(Auth::user()->role == 'Customer'){
return redirect(''); return redirect('');
}elseif(Auth::user()->role == 'DinasPariwisata'){ }elseif(Auth::user()->role == 'DinasPariwisata'){
......
...@@ -67,7 +67,6 @@ Route::group(['middleware' => 'owner'], function () { ...@@ -67,7 +67,6 @@ Route::group(['middleware' => 'owner'], function () {
Route::post('reqFasilitas','OwnerController@storeRequest'); Route::post('reqFasilitas','OwnerController@storeRequest');
Route::get('updateHomestay','OwnerController@update'); Route::get('updateHomestay','OwnerController@update');
Route::put('updateHomestay/{id}','OwnerController@updateHomestay'); Route::put('updateHomestay/{id}','OwnerController@updateHomestay');
Route::delete('batalkanPemesanan/{id}','CustomerController@cancelPemesanan');
Route::get('profile','OwnerController@profile'); Route::get('profile','OwnerController@profile');
Route::get('profiledit/{id}','OwnerController@profileEdit'); Route::get('profiledit/{id}','OwnerController@profileEdit');
Route::put('profileupdate/{id}','OwnerController@updateProfil'); Route::put('profileupdate/{id}','OwnerController@updateProfil');
...@@ -86,6 +85,7 @@ Route::get('detailhomestay/{id}','GuestController@detailhomestay'); ...@@ -86,6 +85,7 @@ Route::get('detailhomestay/{id}','GuestController@detailhomestay');
Route::get('daftar','GuestController@register'); Route::get('daftar','GuestController@register');
Route::group(['middleware' => 'customer'], function () { Route::group(['middleware' => 'customer'], function () {
Route::delete('batalkanPemesanan/{id}','CustomerController@cancelPemesanan');
Route::put('upload/{id}','CustomerController@upload'); Route::put('upload/{id}','CustomerController@upload');
Route::get('customerHistory','CustomerController@history'); Route::get('customerHistory','CustomerController@history');
Route::post('daftar','CustomerController@registerStore'); Route::post('daftar','CustomerController@registerStore');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment