Mercurial > packages > magicforger
diff src/Generator/Route/stubs/route.stub @ 5:b0b2e79ad8e6
Not exatly sure what was changed but commiting to it :)
| author | luka |
|---|---|
| date | Thu, 12 Oct 2023 19:41:04 -0400 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/Generator/Route/stubs/route.stub Thu Oct 12 19:41:04 2023 -0400 @@ -0,0 +1,13 @@ +<?php +Route::controller({{ controllerName }}::class) + ->prefix('{{ tableName }}') + ->alias('{{ tableName }}.') + ->group( function () { + Route::get('/', 'index')->name('index'); + Route::get('/create', 'create')->name('create'); + Route::get('/edit', 'edit')->name('edit'); + + Route::post('/store', 'store')->name('store'); + Route::put('/udpate/{id}', 'update')->name('update'); + Route::delete('/delete/{id}', 'delete')->name('delete'); + });
