PHPackages                             andreazorzi/laravel-advanced-model - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. andreazorzi/laravel-advanced-model

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

andreazorzi/laravel-advanced-model
==================================

Helpful laravel model commands

1.2.2(4mo ago)1134↓33.3%MITPHPPHP ^8.2

Since Nov 29Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/andreazorzi/laravel-advanced-model)[ Packagist](https://packagist.org/packages/andreazorzi/laravel-advanced-model)[ Docs](https://github.com/andreazorzi/laravel-advanced-model)[ RSS](/packages/andreazorzi-laravel-advanced-model/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (15)Used By (0)

Laravel Advanced Model
======================

[](#laravel-advanced-model)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9797177c33edebccb1f965edc3fd1701e0377c89b9144b08fc94ec73730c595e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e647265617a6f727a692f6c61726176656c2d616476616e6365642d6d6f64656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andreazorzi/laravel-advanced-model)[![Total Downloads](https://camo.githubusercontent.com/9c5a6ec3f0665f4192d18721365505a5e953b0312faa36c3244557172f425f78/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647265617a6f727a692f6c61726176656c2d616476616e6365642d6d6f64656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andreazorzi/laravel-advanced-model)

A Laravel package that generates complete CRUD resources with a single command. Creates models, controllers, views, routes, and more with Bootstrap 5 UI and htmx functionality for modern web applications.

What This Package Does
----------------------

[](#what-this-package-does)

This package extends Laravel's model generation by creating a complete set of files for CRUD operations:

- Model with factory
- Controller with advanced response methods
- Blade views with Bootstrap 5 styling
- Routes (both web and request)
- Modal components for UI interactions

All generated views use Bootstrap 5 for styling and htmx for seamless AJAX interactions.

Requirements
------------

[](#requirements)

### Frontend Dependencies

[](#frontend-dependencies)

This package assumes you have the following assets available in your project:

- [Bootstrap 5](https://getbootstrap.com/) - for styling the generated tables and UI components
- [htmx](https://htmx.org/) - for handling AJAX requests
- [Toastify JS](https://www.npmjs.com/package/toastify-js) - for alert notifications
- [SweetAlert2](https://sweetalert2.github.io/) - for alert notifications

Installation
------------

[](#installation)

1. ### Install the package:

    [](#install-the-package)

    ```
    composer require andreazorzi/laravel-advanced-model
    ```
2. ### Install frontend dependencies:

    [](#install-frontend-dependencies)

    ```
    npm install bootstrap@5 htmx.org toastify-js sweetalert2
    ```

Setup
-----

[](#setup)

### Route Files Configuration

[](#route-files-configuration)

This package automatically adds routes to your route files. You need to add placeholder comments for this to work:

1. Create or modify `routes/request.php`:

```
