mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-25 23:34:11 +00:00
added rate to booking table
This commit is contained in:
@@ -17,7 +17,10 @@ class BookingController extends Controller
|
||||
{
|
||||
|
||||
public function index(){
|
||||
$booking = Booking::where('user_id',Auth::user()->id)->get();
|
||||
$booking = Booking::select('bookings.id', 'rates.bookings.term')
|
||||
->leftJoin('rates', 'bookings.rate_id', '=', 'rates.id')
|
||||
->where('user_id',Auth::user()->id)
|
||||
->get();
|
||||
return $booking;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user