Asset::add cannot be used with {{}}

This commit is contained in:
Deon George 2021-12-01 17:07:08 +11:00
parent d376c79fad
commit d9896fbe93
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254

View File

@ -14,10 +14,12 @@
--}}
<!-- Theme style -->
{{ Asset::add('components-css','/css/components.css') }}
{{ Asset::add('style-css','/css/style.css') }}
{{ Asset::add('style-responsive-css','/css/style-responsive.css') }}
{{ Asset::add('theme-blue-css','/css/themes/blue.css') }}
@php
Asset::add('components-css','/css/components.css');
Asset::add('style-css','/css/style.css');
Asset::add('style-responsive-css','/css/style-responsive.css');
Asset::add('theme-blue-css','/css/themes/blue.css');
@endphp
<!-- Google Font: Source Sans Pro -->
<link href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|PT+Sans+Narrow|Source+Sans+Pro:200,300,400,600,700,900&amp;subset=all" rel="stylesheet" type="text/css">
@ -32,7 +34,7 @@
<link rel="shortcut icon" href="{{ object_get($site,'favicon','favicon.ico') }}" />
<!-- Custom CSS -->
{{ Asset::add('custom-css','/css/custom.css') }}
@php(Asset::add('custom-css','/css/custom.css'))
<!-- STYLESHEETS -->
{!! Asset::styles() !!}