Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

J-Sandaruwan
J-Sandaruwan

Posted on • Edited on

     

Laravel 8 with Bootstrap (Part 1)

Sometimes we have trouble with Tailwind CSS. Now we have jetstrap package to solve this problem. This package converts auth blade and profile blade for bootstrap. We will see how to do that.
Laravel 8 with Bootstrap

First and foremost, we must establish a Laravel 8 application.

composer create-project laravel/laravel bootstrap-app
Enter fullscreen modeExit fullscreen mode

Go to the our project file.

cd bootstrap-app
Enter fullscreen modeExit fullscreen mode

Configuration of a Database

Open your IDE's.env file to see the configuration.

Configuration of a Database

The command above only install Laravel, however, if you want to install Jetstream together then either

composer require laravel/jetstream
Enter fullscreen modeExit fullscreen mode

We must install one of the stacks, either a livewire or an inertia stack; in this example, I will only use a livewire stack because it has already set up everything I need for the app's installation..

php artisan jetstream:install livewire
Enter fullscreen modeExit fullscreen mode

with tailwind

Now we can install magical package for this project.

composer require nascent-africa/jetstrap --devphp artisan jetstrap:swap livewire
Enter fullscreen modeExit fullscreen mode

with bootstrap

Bringing It All Together for Installation

To remove tailwindCSS from your package, remove it together with any of its dependencies after installing Jetstrap.Then install and build your NPM dependencies, and then migrate your database.

npm install && npm run devphp artisan migrate
Enter fullscreen modeExit fullscreen mode

Test Our Project

php artisan serve
Enter fullscreen modeExit fullscreen mode

Let's meet again for the brand new tutorial.

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
klsameera profile image
klsameera
Full stack Laravel Developer
  • Location
    Eheliyagoda,Sri lanka
  • Joined

Great blog! Thank you very much.

CollapseExpand
 
jsandaruwan profile image
J-Sandaruwan
Hi, I’m @J-Sandaruwan (ජනිත් සඳරුවන්)
  • Location
    Hertfordshire
  • Joined

Thank you very much!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Hi, I’m @J-Sandaruwan (ජනිත් සඳරුවන්)
  • Location
    Hertfordshire
  • Joined

More fromJ-Sandaruwan

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp