Configuration

# Publish command

To customize Zinq’s default settings, publish the configuration file to your Laravel project:

 
php artisan vendor:publish --tag=zinq-config

This command will publish the zinq.php configuration file to the config directory of your Laravel project.

# Options

Here are the key configuration options available in the zinq.php file:

# Fonts

Zinq comes with a default set of two fonts: Inter and Source Code Pro . If you already include these fonts in your project, you can disable them using inject_fonts option.

 
'inject_fonts' => false,

# Toast position

Define where toast notifications appear on the screen. Possible values (from Zinq\Enums\ToastPositionEnum ):

  • TOP_LEFT
  • TOP_RIGHT
  • BOTTOM_LEFT
  • BOTTOM_RIGHT

Default:

 
'toast_position' => Zinq\Enums\ToastPositionEnum::TOP_RIGHT,

Read more about Toast component in the Toast section.

# Toast duration

Set the duration (in milliseconds) for how long a toast notification remains visible.

Default:

 
'toast_duration' => 5000,

Read more about Toast component in the Toast section.

# Date Format

Specify the global date format used by Zinq Table Builder. Example formats:

  • M j, G:i A (e.g., “Nov 21, 14:30 PM”)
  • Y-m-d H:i (e.g., “2024-11-21 14:30”)

Default:

 
'date_format' => 'M j, G:i A',

# Colors

Learn how to customize Zinq’s color palette in the Colors section.

# Environment overrides

If you need environment-specific configuration, you can define these values in your .env file and reference them in the zinq.php config.

Example:

 
'toast_duration' => env('ZINQ_TOAST_DURATION', 5000),

Add the following to your .env file:

 
ZINQ_TOAST_DURATION=7000