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
b5959e5b
Commit
b5959e5b
authored
7 years ago
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f7f8971e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
OwnerController.php
app/Http/Controllers/OwnerController.php
+19
-0
No files found.
app/Http/Controllers/OwnerController.php
View file @
b5959e5b
...
...
@@ -2,6 +2,7 @@
namespace
App\Http\Controllers
;
use
App\ListBook
;
use
App\RequestFasilitas
;
use
App\RequestHomestay
;
use
App\Room
;
...
...
@@ -20,6 +21,24 @@ class OwnerController extends Controller
}
public
function
addBook
(
Request
$request
){
$lb
=
new
ListBook
();
$dataPemilik
=
DB
::
table
(
'pemilikhomestay'
)
->
select
(
'pemilikhomestay.id'
)
->
where
(
'pemilikhomestay.id_Akun'
,
'='
,
Auth
::
user
()
->
id
)
->
get
();
$dataHomestay
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.idPemilik'
,
'pemilikhomestay.id'
)
->
select
(
'homestay.id'
)
->
where
(
'homestay.id_Akun'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
}
public
function
updateRoom
(
Request
$request
,
$id
){
$dataKamar
=
Room
::
find
(
$id
);
...
...
This diff is collapsed.
Click to expand it.
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