diff --git a/motorradig/app/Http/Controllers/TourController.php b/motorradig/app/Http/Controllers/TourController.php index 77b8dea..89bf2e1 100644 --- a/motorradig/app/Http/Controllers/TourController.php +++ b/motorradig/app/Http/Controllers/TourController.php @@ -249,6 +249,11 @@ class TourController extends Controller } + public function create_room($tour_id, $capacity) { + DB::delete("INSERT INTO booking_rooms") + } + + public function upload_gallery(Request $request, Tour $tour){ dd($request); } diff --git a/motorradig/database/migrations/2022_04_20_083326_create_booking_rooms.php b/motorradig/database/migrations/2022_04_20_083326_create_tour_rooms.php similarity index 86% rename from motorradig/database/migrations/2022_04_20_083326_create_booking_rooms.php rename to motorradig/database/migrations/2022_04_20_083326_create_tour_rooms.php index 0147a82..09b04cc 100644 --- a/motorradig/database/migrations/2022_04_20_083326_create_booking_rooms.php +++ b/motorradig/database/migrations/2022_04_20_083326_create_tour_rooms.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateBookingRooms extends Migration +class CreateTourRooms extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateBookingRooms extends Migration */ public function up() { - Schema::create('booking_rooms', function (Blueprint $table) { + Schema::create('tour_rooms', function (Blueprint $table) { $table->id(); $table->string('name'); $table->integer('tour_id'); @@ -25,7 +25,7 @@ class CreateBookingRooms extends Migration $table->integer('room_id')->after('user_id'); }); - + } diff --git a/motorradig/resources/views/tour/edit.blade.php b/motorradig/resources/views/tour/edit.blade.php index 37680fb..685ade4 100644 --- a/motorradig/resources/views/tour/edit.blade.php +++ b/motorradig/resources/views/tour/edit.blade.php @@ -107,7 +107,13 @@ @endforeach