Fix importing Illuminate\Support\Str

This commit is contained in:
Pig Fang 2019-08-08 22:27:16 +08:00
parent 2952d86c5e
commit aa635c16af

View File

@ -1,5 +1,5 @@
@php
$faviconUrl = Str::startsWith($url = (option('favicon_url') ?: config('options.favicon_url')), 'http') ? $url : url($url);
$faviconUrl = \Illuminate\Support\Str::startsWith($url = (option('favicon_url') ?: config('options.favicon_url')), 'http') ? $url : url($url);
@endphp
<link rel="shortcut icon" href="{{ $faviconUrl }}">
<link rel="icon" type="image/png" href="{{ $faviconUrl }}" sizes="192x192">