Styles in Orchid laravel

239 Views Asked by At

I created a Laravel project as per the instructions https://orchid.software/en/docs/quickstart/

As a result, it turned out that the administrative panel Orchid styles did not work. How can I fix this?

Current file path's:

/vendor/orchid/css/orchid.css?id=3578927bc9308e7a38b3c81d38a8cdad /vendor/orchid/js/manifest.js?id=fa18bd350409678078668239241217f5 /vendor/orchid/js/vendor.js?id=627078ee16848736db22766555ad6401 /vendor/orchid/js/orchid.js?id=b39b4e447cf753dd191ab747020e2d32

2

There are 2 best solutions below

6
On

I think you are missing this to keep assets updated:

On composer.json put:

"scripts": {
    "post-update-cmd": [
      "@php artisan orchid:publish --ansi"
  ]
}

then check if everything is ok by:

php artisan about
0
On

I have the exact same problem. And the solution is very simple actually. Just add

'mix_url' => env('MIX_URL', null),

to config/app.php

But before that, set MIX_URL value on .env

And then run

  • php artisan config:clear
  • php artisan config:cache
  • php artisan orchid:publish

hope it helps.

For more explanation, check this: https://github.com/orchidsoftware/platform/issues/2237