Cleanup the dash settings controller

This commit is contained in:
Graham Campbell 2015-01-01 17:45:41 +00:00
parent 843268e645
commit be078cc2e8

View File

@ -127,7 +127,7 @@ class DashSettingsController extends Controller
$maxSize = $file->getMaxFilesize();
if ($file->getSize() > $maxSize) {
return Redirect::back()->withErrorMessage('You need to upload an image that is less than '.$maxSize.'.');
return Redirect::back()->withErrorMessage("You need to upload an image that is less than $maxSize.");
}
if (!$file->isValid() || $file->getError()) {
@ -155,7 +155,7 @@ class DashSettingsController extends Controller
try {
foreach (Input::except(['app_banner', 'remove_banner']) as $settingName => $settingValue) {
$setting = Setting::firstOrCreate([
Setting::firstOrCreate([
'name' => $settingName,
])->update([
'value' => $settingValue,