Commit 42e4f27b by Juliper

no message

parent 50d140f3
......@@ -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
{
if(Auth::check()){
if(Auth::user()->role != 'Owner'){
dd('masuk');
dd('masuk di midle gan');
if(Auth::user()->role == 'Customer'){
return redirect('');
}elseif(Auth::user()->role == 'DinasPariwisata'){
......
......@@ -67,7 +67,6 @@ Route::group(['middleware' => 'owner'], function () {
Route::post('reqFasilitas','OwnerController@storeRequest');
Route::get('updateHomestay','OwnerController@update');
Route::put('updateHomestay/{id}','OwnerController@updateHomestay');
Route::delete('batalkanPemesanan/{id}','CustomerController@cancelPemesanan');
Route::get('profile','OwnerController@profile');
Route::get('profiledit/{id}','OwnerController@profileEdit');
Route::put('profileupdate/{id}','OwnerController@updateProfil');
......@@ -86,6 +85,7 @@ Route::get('detailhomestay/{id}','GuestController@detailhomestay');
Route::get('daftar','GuestController@register');
Route::group(['middleware' => 'customer'], function () {
Route::delete('batalkanPemesanan/{id}','CustomerController@cancelPemesanan');
Route::put('upload/{id}','CustomerController@upload');
Route::get('customerHistory','CustomerController@history');
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