Skip to content

Commit 868ea27

Browse files
author
Ajith Lal
committedAug 27, 2020
1 parent 75a8792 commit 868ea27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎templates/default/routes.stub

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
->name('[% index_route_name %]');
33
Route::get('/create','[% controller_name %]@create')
44
->name('[% create_route_name %]');
5-
Route::get('/show/{[% model_name_singular_variable %]}','[% controller_name %]@show')
5+
Route::get('/{[% model_name_singular_variable %]}/show','[% controller_name %]@show')
66
->name('[% show_route_name %]')[% route_id_clause %];
77
Route::get('/{[% model_name_singular_variable %]}/edit','[% controller_name %]@edit')
88
->name('[% edit_route_name %]')[% route_id_clause %];
9-
Route::post('/', '[% controller_name %]@store')
9+
Route::post('/store', '[% controller_name %]@store')
1010
->name('[% store_route_name %]');
11-
Route::put('[% model_name_snake %]/{[% model_name_singular_variable %]}', '[% controller_name %]@update')
11+
Route::put('/{[% model_name_singular_variable %]}/[% model_name_snake %]/update', '[% controller_name %]@update')
1212
->name('[% update_route_name %]')[% route_id_clause %];
13-
Route::delete('/[% model_name_snake %]/{[% model_name_singular_variable %]}','[% controller_name %]@destroy')
13+
Route::delete('/{[% model_name_singular_variable %]}/[% model_name_snake %]/delete','[% controller_name %]@destroy')
1414
->name('[% destroy_route_name %]')[% route_id_clause %];

0 commit comments

Comments
 (0)