I using Admin::js('link') to load script. When going to another page then come back js can not load.
NOT REFRESH PAGE using js pjax in your lib.
Can you help me ? :(.
Can we have a config to disable pjax ?
Open public/vendor/laravel-admin/laravel-admin/laravel-admin.js , comment out the rows associated with pjax
@z-song can we have another solution?
hello
for laravel_admin with version #1.5
1-Change AdminServiceProvider in vendor/encore/laravel-admin/src
$this->loadViewsFrom(__DIR__.'/../resources/views', 'admin');
to
$this->loadViewsFrom(resource_path('views/admin'),'admin');
2.Copy all views from vendor/encore/laravel-admin/resources to your resources/view
3-Add your script in the end of content.blade.php before the @endsection tag is closed
Most helpful comment
hello
for laravel_admin with version #1.5
1-Change AdminServiceProvider in vendor/encore/laravel-admin/src
$this->loadViewsFrom(__DIR__.'/../resources/views', 'admin');to
$this->loadViewsFrom(resource_path('views/admin'),'admin');2.Copy all views from vendor/encore/laravel-admin/resources to your resources/view
3-Add your script in the end of
content.blade.phpbefore the@endsectiontag is closed