#21 base code for accepting/rejecting PIREPs
This commit is contained in:
@@ -76,6 +76,8 @@ class RankController extends BaseController
|
||||
$model = $this->rankRepository->create($input);
|
||||
Flash::success('Ranking saved successfully.');
|
||||
|
||||
Cache::forget(config('phpvms.cache_keys.RANKS_PILOT_LIST')['key']);
|
||||
|
||||
return redirect(route('admin.ranks.edit', ['id' => $model->id]));
|
||||
}
|
||||
|
||||
@@ -141,6 +143,7 @@ class RankController extends BaseController
|
||||
}
|
||||
|
||||
$rank = $this->rankRepository->update($request->all(), $id);
|
||||
Cache::forget(config('phpvms.cache_keys.RANKS_PILOT_LIST')['key']);
|
||||
|
||||
Flash::success('Ranking updated successfully.');
|
||||
return redirect(route('admin.ranks.index'));
|
||||
|
||||
Reference in New Issue
Block a user