Update admin location routes and controller to use service

Needs tests written, uses new validation on model.
This commit is contained in:
Dane Everitt 2017-06-14 23:53:24 -05:00
parent 26e476a794
commit fe4977f0fa
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 293 additions and 60 deletions

View file

@ -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');
});
/*