goodyweb/jetstream-crud
Generate Jetstream-ready CRUD modules (Create, Read, Update, Delete) for any table with one Artisan command. Scaffolds bare Livewire components and Blade views with search and pagination, so you can manage records quickly in Laravel apps.

This Laravel package generates bare Livewire Components and Blade templates that would allow you to manipulate the records of a certain database table. The modules include:
This package makes it easy to create a full CRUD module by just issuing a single command:
php artisan generate:crud --model=Person --livewire=Persons
Voila!
See the Installation, Configuration, and Usage sections for the full details.
composer require goodyweb/jetstream-crud dev-master
On your Livewire configuration file (config/livewire.php), set the legacy_model_binding option to true like so:
'legacy_model_binding' => true,
Important: If you don't have the config/livewire.php file, you may just create one with the default content from the raw code repository.
Make a database table as you usually would:
php artisan make:migration create_persons_table --create=persons
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('persons', function (Blueprint $table) {
$table->id();
// add something columns here maybe
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('persons');
}
};
php artisan migrate
Make the Eloquent Model for the database table as you usually would:
php artisan make:model Person
Generate the Livewire Component and Blade template for the CRUD module:
php artisan generate:crud --model=Person --livewire=Persons
| Parameter | Argument | Explanation |
|---|---|---|
model |
Person |
Person refers to the Eloquent Model that will be used for the whole CRUD module. |
livewire |
Persons |
Persons refers to the class name of the Livewire that will be generated. |
How can I help you explore Laravel packages today?