Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa2d4ti06
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Juliper
pa2d4ti06
Commits
42e4f27b
Commit
42e4f27b
authored
May 26, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
50d140f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
CustomerController.php
app/Http/Controllers/CustomerController.php
+1
-1
Owner.php
app/Http/Middleware/Owner.php
+1
-1
web.php
routes/web.php
+1
-1
No files found.
app/Http/Controllers/CustomerController.php
View file @
42e4f27b
...
...
@@ -354,7 +354,7 @@ class CustomerController extends Controller
]);
return
redirect
(
)
->
action
(
'GuestController@detailhomestay'
,
[
'id'
=>
$request
[
'id'
]]
);
return
redirect
(
'customerHistory'
);
}
...
...
app/Http/Middleware/Owner.php
View file @
42e4f27b
...
...
@@ -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'
){
...
...
routes/web.php
View file @
42e4f27b
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment