Join tour with rooms from modal
This commit is contained in:
parent
757dfea5a4
commit
f1ff6ed4c2
5 changed files with 29 additions and 11 deletions
|
|
@ -316,10 +316,17 @@ class TourController extends Controller
|
|||
}
|
||||
|
||||
public function join($tour_id) {
|
||||
Log::info("TourController::join");
|
||||
$user=Auth::user();
|
||||
Tour::join($tour_id,$user->id);
|
||||
return redirect('/tour/'.$tour_id);
|
||||
}
|
||||
public function join_room($tour_id,$room_id) {
|
||||
Log::info("TourController::join_room");
|
||||
$user=Auth::user();
|
||||
Tour::join_room($tour_id,$user->id, $room_id);
|
||||
return redirect('/tour/'.$tour_id);
|
||||
}
|
||||
|
||||
public function cancelBooking($tour_id) {
|
||||
$user=Auth::user();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue