This commit is contained in:
James Brooks
2014-12-31 11:51:06 +00:00
parent d60cd4db81
commit 160d179b0e

View File

@@ -124,16 +124,16 @@ class DashSettingsController extends Controller
// Store the banner.
Setting::firstOrCreate([
'name' => 'app_banner'
'name' => 'app_banner',
])->update([
'value' => base64_encode(file_get_contents($file->getRealPath()))
'value' => base64_encode(file_get_contents($file->getRealPath())),
]);
// Store the banner type
Setting::firstOrCreate([
'name' => 'app_banner_type'
'name' => 'app_banner_type',
])->update([
'value' => $file->getMimeType()
'value' => $file->getMimeType(),
]);
}