-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Argument 2 passed to Orchestra\Asset\Asset::style() must be of the type string #111
Comments
Fixed! |
BTW: I needed to apply the same fix to the url() function in src/Themes.php IE:
|
@leenooks why is this broken? this line: https://github.com/igaster/laravel-theme/blob/master/src/Themes.php#L319 will call the Theme::url() which should return the correct value. Unless you didn't set some active theme. Is that your case? |
Without my patch, when you have |
Hi, if you use
@css
or@js
with a url without http(s), it results in the above error. EG:@css('//cdn/file') or @js('//cdn/file')
A fix I propose for this is to modify Theme.php, and in the function url(), add the following to the beginning of the function:
The text was updated successfully, but these errors were encountered: