Skip to content

Configuration

Now that you have the package installed in your project, you need to follow the below steps to make it works:

Publish configuration file

The package use a configuration file to manage some properties, so if you wanna some customization you can publish it with the following command:

Terminal window
php artisan vendor:publish --tag=fluent-config

This will publish the following file config/fluent.php.

Publish translations

To customize the package translations you can publish it using the following command:

Terminal window
php artisan vendor:publish --tag=fluent-translations

Publish migrations

You need to publish plugin migrations by using the following command:

Terminal window
php artisan vendor:publish --tag=fluent-migrations

After that, you need to run migrations php artisan migrate.

Important if you want to change the plugin tables prefix, you can change the configuration fluent.migrations.prefix parameter.

Enable Filament plugin

To enable the plugin in your Filament application, you only need to add the following to your Panel provider:

// imports
use Devaslanca\Fluent\FluentPlugin;
// panel method
public function panel(Panel $panel): Panel
{
return $panel
//...
->plugins([
FluentPlugin::make(),
]);
}