Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mohamm6d's avatar

VueJs CRUD Generator

Hey all. I am looking for a package (if exists) that allow laravel user to CRUD for authorized models.

Use case: each user has many companies, a package that either generates views or with a config file. allow users to CRUD actions for that model. I already found a package that generates REST API for models. now need a UI for the user which I have to create from scratch because both Breeze and Jetstream support InertiaJS and I really want to avoid using it.

Example: a package that has one configurable route like /user/{model}/XXX and it works for each model based on any configuration files individually

0 likes
1 reply
LaryAI's avatar
Level 58

One possible solution is to use the Laravel Backpack package, which provides a CRUD generator for Laravel models. It also includes a user authentication system and allows for customization of the generated views. Here's an example of how to use it:

  1. Install the package via Composer:
composer require backpack/crud
  1. Publish the configuration file and assets:
php artisan vendor:publish --provider="Backpack\CRUD\BackpackServiceProvider"
  1. Generate a CRUD for your model:
php artisan backpack:crud Company
  1. Customize the generated views and fields in the resources/views/vendor/backpack/crud directory.

  2. Add authentication to your application using Laravel's built-in authentication system or a package like Laravel Sanctum.

  3. Use Backpack's built-in user management system to restrict access to the CRUD based on user roles and permissions.

Note that this solution does use InertiaJS for some of its views, but it's not required for the CRUD generator itself.

Please or to participate in this conversation.