Closed AngelinCalu closed 7 years ago
What should this return ? explode( $_SERVER['SERVER_NAME'], route('admin.settings'))[1]
explode( $_SERVER['SERVER_NAME'], route('admin.settings'))[1]
I get the error: explode(): Empty delimiter (View: .... /laravel-vue-starter/resources/views/dashboard/dashboard_settings.blade.php)
explode(): Empty delimiter (View: .... /laravel-vue-starter/resources/views/dashboard/dashboard_settings.blade.php)
Fixed it by replacing the explode() function with str_replace():
explode()
str_replace()
baseUri: '{{ str_replace(url('/'), '', route('admin.settings')) }}',
Glad you found a fix. This was only necessary for localhost/app kinda setups where /some-route didn't map correctly from within Vue. Not needed when proper domain is set up.
What should this return ?
explode( $_SERVER['SERVER_NAME'], route('admin.settings'))[1]
I get the error:
explode(): Empty delimiter (View: .... /laravel-vue-starter/resources/views/dashboard/dashboard_settings.blade.php)
Fixed it by replacing the
explode()
function withstr_replace()
:baseUri: '{{ str_replace(url('/'), '', route('admin.settings')) }}',