/
devron
/
ecomm-app
Обзор
Документация
Войти
/
devron
/
ecomm-app
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
app/Http/Controllers/Dashboard/VendorController.php
78 строк
2 KB
Romulus
first init
17 апр 2024, 15:18
17 апр 2024, 15:18
6886bc2
Код
Авторство
О чём код?
<?php namespace App\Http\Controllers\Dashboard; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class VendorController extends Controller { public function data($id) { return []; } /** * Display a listing of the resource. */ public function index(Request $request) { return $this->response($request, [ 'title' => 'Производители', // 'data' => $this->data() ]); } /** * Show the form for creating a new resource. */ public function create(Request $request) { return $this->response($request, [ 'title' => 'Новый производитель' ]); } /** * Store a newly created resource in storage. */ public function store(Request $request) { // } /** * Display the specified resource. */ public function show(string $id) { // } /** * Show the form for editing the specified resource. */ public function edit(Request $request, string $id) { return $this->response($request, [ 'title' => 'Vendor | Edit', 'data' => $this->data($id) ]); } /** * Update the specified resource in storage. */ public function update(Request $request, string $id) { // } /** * Remove the specified resource from storage. */ public function destroy(Request $request, string $id) { // } }