To authenticate Flux, head over to the packages page on either the server or site. You will then see the following:
Click the "Add Credential" button to authenticate with a new private composer package and enter the following details:
Finally, click the "Save" button. You should now be authenticated with the Flux private composer server and be able
install Flux using
composer require livewire/flux-pro
For more information, please refer to the
Laravel Forge Packages documentation.
If you are installing Flux in a project that uses classes such as
.dark
for toggling dark mode—instead of detecting a user's operating system preference—you will need to add the following to your
tailwind.config.js
file:
If you run into problems loading Flux's JavaScript and CSS assets, you may need to configure your nginx server to allow for this.
By default, Flux exposes two routes in your application to serve its assets from:
/flux/flux.js
and
/flux/flux.css
.
This is fine for most applications, however, if you are using nginx with a custom configuration, you may receive a 404 from this endpoint.