santigarcor/laratrust

laravel project did not load assets of laratrust panel correctly on production server with https

Closed this issue · 2 comments

Hello every one.
I ran into a problem, the laratrust panel incorrectly generates links to assets to the public/vendor/laratrust folder.

  • Laravel Version: 8.75
  • Laratrust Version: 6.3.2

Describe the bug
The links are generated absolute, not relative, which is why the browser refuses to download them.

To Reproduce

In order to fix this, you just need to remove the call of all asset() functions and leave only the mix() calls in the layout(vendor/santigarcor/laratrust/resources/views/panel/layout.blade.php)

and?

I just pushed a fix for this and I intend to push it in the new version with the support for laravel 9. You could use dev-master for now