Mercurial > packages > magicforger
view src/Generator/Route/stubs/routes.stub @ 28:f88d2d5dee30 codex
Updated inputs and routes
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Mon, 09 Jun 2025 19:51:31 -0400 |
| parents | b17f81b804ff |
| children | 45f384a24553 |
line wrap: on
line source
<?php use Illuminate\Support\Facades\Route; use \App\Http\Controllers\{{ controllerName }}; Route::controller({{ controllerName }}::class) ->middleware(['web','auth']) ->prefix('{{ tableName }}') ->as('{{ tableName }}.') ->group( function () { Route::get('/', 'index')->name('index'); Route::get('/create', 'create')->name('create'); Route::get('/{{{ modelVariable }}}/edit', 'edit')->name('edit'); Route::get('/{{{ modelVariable }}}', 'show')->name('show'); Route::get('/{{{ modelVariable }}}/load', 'load')->name('load'); Route::post('/store', 'store')->name('store'); Route::put('/udpate/{{{ modelVariable }}}', 'update')->name('update'); Route::delete('/destroy/{{{ modelVariable }}}', 'destroy')->name('destroy'); });
