From 067018cf4708fecdae81c7cc6d4df7a105e593af Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 27 Apr 2016 14:37:17 +0100 Subject: [PATCH] Use the Str facade --- app/Http/Controllers/Dashboard/SettingsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Dashboard/SettingsController.php b/app/Http/Controllers/Dashboard/SettingsController.php index bc33316d..f4275796 100644 --- a/app/Http/Controllers/Dashboard/SettingsController.php +++ b/app/Http/Controllers/Dashboard/SettingsController.php @@ -19,6 +19,7 @@ use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Lang; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Session; +use Illuminate\Support\Facades\Str; use Illuminate\Support\Facades\View; class SettingsController extends Controller @@ -248,7 +249,7 @@ class SettingsController extends Controller return Redirect::to($redirectUrl)->withErrors($file->getErrorMessage()); } - if (!starts_with($file->getMimeType(), 'image/')) { + if (!Str::startsWith($file->getMimeType(), 'image/')) { return Redirect::to($redirectUrl)->withErrors(trans('dashboard.settings.app-setup.images-only')); }