To generate RTL (Right-to-Left) CSS files for your Laravel application, follow these steps:
Open your terminal or command prompt.
Navigate to the root directory of your Laravel project.
Run the following command:
npm run dev --rtl
This command triggers the build process and generates the RTL CSS files based on your project's stylesheets.
Locate the file named settings.php in the following path: /laravel/starterkit/config/settings.php
.
Open the settings.php file in a text editor or IDE of your choice.
Find the configuration key KT_THEME_DIRECTION
and change its value from ltr
to rtl
.
The updated configuration should look like this:
'KT_THEME_DIRECTION' => 'rtl',
This change notifies Laravel to load the RTL CSS files instead of the default LTR (Left-to-Right) ones.
Save the settings.php file after making the necessary modification.