Файловый менеджер - Редактировать - /home/clickysoft/public_html/benchexc.clickysoft.net/app/Http/Controllers/Admin/IndustryController.php
Назад
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Interfaces\Admin\IndustryRepositoryInterface; use App\Models\Industry; use Illuminate\Http\Request; class IndustryController extends Controller { protected IndustryRepositoryInterface $industryRepository; public function __construct(IndustryRepositoryInterface $industryRepository) { return $this->industryRepository = $industryRepository; } public function index() { if (request()->ajax()) { return $this->industryRepository->getDataTable(); } return view('admin.industry.index'); } public function add(){ return view('admin.industry.create'); } public function addData(Request $request) { return $this->industryRepository->create($request); } public function update(Request $request,$id) { $industry = Industry::where('id',$id)->first(); return view('admin.industry.update',compact('industry')); } public function updateData(Request $request,$id) { return $this->industryRepository->update($request,$id); } public function destroy($id) { return $this->industryRepository->destroy($id); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка