Update admin location routes and controller to use service
Needs tests written, uses new validation on model.
This commit is contained in:
parent
26e476a794
commit
fe4977f0fa
7 changed files with 293 additions and 60 deletions
|
@ -33,10 +33,10 @@ Route::get('/', 'BaseController@getIndex')->name('admin.index');
|
|||
*/
|
||||
Route::group(['prefix' => 'locations'], function () {
|
||||
Route::get('/', 'LocationController@index')->name('admin.locations');
|
||||
Route::get('/view/{id}', 'LocationController@view')->name('admin.locations.view');
|
||||
Route::get('/view/{location}', 'LocationController@view')->name('admin.locations.view');
|
||||
|
||||
Route::post('/', 'LocationController@create');
|
||||
Route::post('/view/{id}', 'LocationController@update');
|
||||
Route::post('/view/{location}', 'LocationController@update');
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue