middleware('permission:read-settings-company')->only('index', 'show', 'edit', 'export'); $this->middleware('permission:update-settings-company')->only('update', 'enable', 'disable'); } /** * Show the form for editing the specified resource. * * @param Company $company * * @return Response */ public function edit(Company $company) { $html = view('modals.companies.edit', compact('company'))->render(); return response()->json([ 'success' => true, 'error' => false, 'message' => 'null', 'html' => $html, ]); } }