From 693fa008887ac54899c34b9bad7fe08a405bd3d0 Mon Sep 17 00:00:00 2001 From: Ilya Date: Fri, 13 Jan 2023 18:54:47 +0700 Subject: [PATCH] fix: change a way get js file --- src/OrchidFieldsServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchidFieldsServiceProvider.php b/src/OrchidFieldsServiceProvider.php index 2f542f0..69be2d4 100644 --- a/src/OrchidFieldsServiceProvider.php +++ b/src/OrchidFieldsServiceProvider.php @@ -18,7 +18,7 @@ public function boot(Dashboard $dashboard): void $this->loadViewsFrom($path, 'platform-fields'); $dashboard->registerResource('scripts', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js'); - $dashboard->registerResource('scripts', config('app.asset_url') . '/vendor/orchid-fields/js/orchid_fields.js'); + $dashboard->registerResource('scripts', asset('/vendor/orchid-fields/js/orchid_fields.js')); $dashboard->registerResource('scripts', 'https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.3.1/js/ion.rangeSlider.min.js'); $dashboard->registerResource('stylesheets', 'https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.3.1/css/ion.rangeSlider.min.css'); $this->registerAssets();