Right to Left (RTL) version of Metronic Laravel can be easily setup with special Laravel Mix plugin that depends on RTLCSS tools.
webpack.mix.js
file.
webpack.mix.js
file.
new WebpackRTLPlugin({
filename: '[name].rtl.css',
options: {},
plugins: [],
})
npm run dev --rtl --demo1
public
folder. Here is the list of CSS files that need to include in the HTML:
public/[demo]/css/style.bundle.rtl.css
public/[demo]/plugins/global/plugins.bundle.rtl.css
config/demo1/general.php
'assets' => array(
// ...
'css' => array(
'plugins/global/plugins.bundle.rtl.css',
'css/style.bundle.rt.css',
),
// ...
),
app/helpers.php
to force enable RTL option.
function isRTL()
{
return true;
}
<html lang="en" dir="rtl" direction="rtl" style="direction:rtl;" >