Jetstrap screenshot

Jetstrap

Author Avatar Theme by Nascent africa
Updated: 9 Feb 2022
713 Stars

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

Categories

Overview:

Jetstrap is a lightweight Laravel 8 package designed to enhance the VIEW aspect of the Jetstream / Breeze package integrated into Laravel applications. By focusing on the view side, Jetstrap aims to maintain the handling of Action, Model, Controller, Component, and Action classes by Laravel development teams, without adding complexity.

Features:

  • Lightweight Package: Jetstrap is a small package that specifically targets the view side integration.
  • Seamless Swap Functionality: Enables swapping functionality between Livewire and Inertia stacks easily.
  • Bootstrap Compatibility: Provides overrides to enable Bootstrap styling for a familiar experience.

Installation:

To install Jetstrap, you can follow these steps:

  1. Install Jetstream into your Laravel project using Composer:

    composer require laravel/jetstream
    php artisan jetstream:install livewire
    
  2. Install Jetstrap as a dev dependency using Composer:

    composer require laravel/jetstrap --dev
    
  3. Swap Jetstream resources with Jetstrap by specifying the preferred stack (livewire or inertia) and enabling team support if needed:

    php artisan jetstrap:swap livewire
    npm install && npm run dev
    php artisan migrate
    
  4. (Optional) Use Bootstrap pagination views by calling the paginator’s useBootstrap method in your AppServiceProvider.

    use Illuminate\Pagination\Paginator;
    Paginator::useBootstrap();
    

Summary:

Jetstrap is a useful Laravel package that seamlessly integrates with Jetstream to provide additional features and compatibility, especially in handling the view side of applications. By following the installation guide and utilizing its features like seamless swapping and Bootstrap compatibility, developers can enhance their Laravel projects efficiently.