Reputation: 2000
i want to build a laravel 8 application that uses bootstrap and its so simple until this part but i want to add the rtl version of bootstrap to that . so what i did was this :
composer require laravel/ui
php artisan ui bootstrap
npm install
npm run dev
and what i get is the bootstrap is running fine . and what i did for the the rtl bootstrap is this in layout.blade.php
:
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.rtlcss.com/bootstrap/v4.2.1/css/bootstrap.min.css" integrity="sha384-vus3nQHTD+5mpDiZ4rkEPlnkcyTP+49BhJ4wJeJunw06ZAp+wzzeBPUXr42fi8If" crossorigin="anonymous">
but yet again elements are left to right . any idea how to do that and what i am doing wrong
Upvotes: 1
Views: 1303
Reputation: 307
This is not done properly.
Because the library twice bootstrap sound in its layer, (RTL and LTR)
You should only use one (NPM or CDN)
Version 4.2 is not available for npm
npm i bootstrap-v4-rtl
npm i [email protected]
Upvotes: 1