Файловый менеджер - Редактировать - /home/clickysoft/public_html/benchexc.clickysoft.net/app/Http/Controllers/ResourceController.php
Назад
<?php namespace App\Http\Controllers; use App\Interfaces\Admin\ResourceRepositoryInterface; use App\Models\resource; use Illuminate\Http\Request; class ResourceController extends Controller { private ResourceRepositoryInterface $resourceRepository; public function __construct(ResourceRepositoryInterface $resourceRepository) { return $this->resourceRepository = $resourceRepository; } public function companyResource($id) { if (request()->ajax()) { return $this->resourceRepository->getCompanyResourceDataTable($id); } return view('admin.resource.company-resource'); } public function companyResourceDetail($id) { $companyResource = resource::where('id',$id)->first(); return view('admin.resource.company-resource-detail',compact('companyResource')); } public function index() { if (request()->ajax()) { return $this->resourceRepository->getDataTable(); } return view('admin.resource.index'); } public function statusUpdate(Request $request,$id) { return $this->resourceRepository->updateStatus($id,$request); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка