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