Only until March 18th: coupon LARAVEL12 for 40% off Yearly/Lifetime membership!

Read more here
Laravel Projects Examples

Laravel Breeze CRUD: Livewire Version

This project is a simple Laravel CRUD for Posts model built on top of Laravel Breeze starter kit Livewire version.

Installation

Follow these steps to set up the project locally:

  1. Clone the repository:

    git clone https://github.com/LaravelDaily/CRUDs-Laravel-Livewire project
    cd project
  2. Install dependencies:

    composer install
    npm install && npm run build
  3. Copy the .env file and configure your environment variables:

    cp .env.example .env
  4. Generate the application key:

    php artisan key:generate
  5. Set up the database:

    • Update .env with your database credentials.
    • Run migrations and seed the database, repo includes fake posts:
      php artisan migrate --seed
  6. If you use Laravel Herd/Valet, access the application at http://project.test.

  7. Log in with credentials: [email protected] and password.


Features to Pay Attention To

This project goes beyond the default Laravel Breeze setup with the following enhancements.

  1. Uses Laravel Breeze but not its official Livewire Volt version. Instead, the project uses Blade version of Breeze, adding Livewire only for create/edit forms with dynamic elements.
  2. Also, the project doesn't use Livewire full-page components, it uses Laravel PostController and the full layout comes from Laravel Breeze starter kit
  3. ...