Added ability to delete single application

Also moved User observer code to Application observer
This commit is contained in:
2020-07-12 17:01:33 +01:00
parent 4dc412e53c
commit e978a5417b
11 changed files with 265 additions and 34 deletions

View File

@@ -57,6 +57,9 @@ Route::group(['middleware' => ['auth', 'forcelogout']], function(){
Route::patch('/update/{id}/{newStatus}', 'ApplicationController@updateApplicationStatus')
->name('updateApplicationStatus');
Route::delete('{application}/delete', 'ApplicationController@delete')
->name('deleteApplication');
Route::get('/staff/all', 'ApplicationController@showAllApps')
->name('allApplications');