$rooms]); } public function add_room(Request $request) { $name = $request->input('name'); $capacity = $request->input('capacity'); $arrangement = $request->input('arrangement'); Room::create([ 'name' => $name, 'capacity' => $capacity, 'arrangement' => $arrangement ]); return redirect(route('admin_rooms')); } public function delete_room($room_id) { Room::find($room_id)->delete(); return redirect(route('admin_rooms')); } public function edit_room($room_id) { Room::find($room_id); return redirect(route('admin_rooms')); } }