修复 工单 403 的问题

This commit is contained in:
iVampireSP.com 2022-11-19 10:32:54 +08:00
parent 89e4a8749b
commit 65a99d1a25
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -14,7 +14,7 @@ class WorkOrderRequest extends FormRequest
*/
public function authorize(): bool
{
$work_order = $this->route('workOrder');
$work_order = $this->route('work_order');
// if work_order is model
if ($work_order instanceof WorkOrder) {