![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/Corals/modules/RentPix/Http/Controllers/ |
<?php namespace Corals\Modules\RentPix\Http\Controllers; use Corals\Modules\RentPix\Models\Inspection; use Corals\Modules\RentPix\Models\Reservation; use Corals\Modules\Utility\Http\Controllers\Comment\CommentBaseController; use Corals\Modules\Utility\Http\Requests\Comment\CommentRequest; class CommentController extends CommentBaseController { public function submitInspectionNote(CommentRequest $request, $inspection_hashed_id) { $this->commentableClass = Reservation::class; $inspection = Inspection::findByHash($inspection_hashed_id); $commentable_hashed_id = $inspection->reservation->hashed_id; return $this->createComment($request, $commentable_hashed_id); } }