/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Routing/Console/stubs/controller.singleton.api.stub
41 строка
656 B
Taylor Otwell
Use mixed return type on controller stubs (#46166)
19 фев 2023, 04:45
Не верифицирован
19 фев 2023, 04:45
8f91965
Код
Авторство
О чём код?
<?php namespace {{ namespace }}; use {{ rootNamespace }}Http\Controllers\Controller; use Illuminate\Http\Request; class {{ class }} extends Controller { /** * Store the newly created resource in storage. */ public function store(Request $request): never { abort(404); } /** * Display the resource. */ public function show() { // } /** * Update the resource in storage. */ public function update(Request $request) { // } /** * Remove the resource from storage. */ public function destroy(): never { abort(404); } }