Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajith Lal committed Aug 27, 2020
1 parent 75a8792 commit 868ea27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/default/routes.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
->name('[% index_route_name %]');
Route::get('/create','[% controller_name %]@create')
->name('[% create_route_name %]');
Route::get('/show/{[% model_name_singular_variable %]}','[% controller_name %]@show')
Route::get('/{[% model_name_singular_variable %]}/show','[% controller_name %]@show')
->name('[% show_route_name %]')[% route_id_clause %];
Route::get('/{[% model_name_singular_variable %]}/edit','[% controller_name %]@edit')
->name('[% edit_route_name %]')[% route_id_clause %];
Route::post('/', '[% controller_name %]@store')
Route::post('/store', '[% controller_name %]@store')
->name('[% store_route_name %]');
Route::put('[% model_name_snake %]/{[% model_name_singular_variable %]}', '[% controller_name %]@update')
Route::put('/{[% model_name_singular_variable %]}/[% model_name_snake %]/update', '[% controller_name %]@update')
->name('[% update_route_name %]')[% route_id_clause %];
Route::delete('/[% model_name_snake %]/{[% model_name_singular_variable %]}','[% controller_name %]@destroy')
Route::delete('/{[% model_name_singular_variable %]}/[% model_name_snake %]/delete','[% controller_name %]@destroy')
->name('[% destroy_route_name %]')[% route_id_clause %];

0 comments on commit 868ea27

Please sign in to comment.