lumen-generators/templates/routes-laravel.wnt
Josiah Dahl a2cf22d426 Added Laravel Routes
- New template
- Command updates
2017-08-06 20:54:39 -07:00

9 lines
316 B
Plaintext

/**
* Routes for resource {{resource}}
*/
Route::get('{{resource}}', '{{controller}}@all');
Route::get('{{resource}}/{id}', '{{controller}}@get');
Route::post('{{resource}}', '{{controller}}@add');
Route::put('{{resource}}/{id}', '{{controller}}@put');
Route::delete('{{resource}}/{id}', '{{controller}}@remove');