Commit b5959e5b by Juliper

no message

parent f7f8971e
......@@ -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);
......
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