Banner can now be removed

Signed-off-by: Graham Campbell <graham@mineuk.com>
This commit is contained in:
James King
2015-01-01 11:23:34 +00:00
committed by Graham Campbell
parent 925818320c
commit c3c2c2493c
3 changed files with 20 additions and 2 deletions
@@ -108,6 +108,13 @@ class DashSettingsController extends Controller
// Fetch all of the settings we've been POSTed.
$settings = Input::all();
if ($settings['remove_banner'] == "1") {
$setting = Setting::where('name', 'app_banner');
$setting->delete();
}
unset($settings['remove-banner']);
if (Input::hasFile('app_banner')) {
$file = Input::file('app_banner');