On this page
Prerequisites
- Laravel with Filament v5 installed and a panel configured.
Install
1composer require lara-zeus/chaos
The package auto-registers ChaosServiceProvider. It ships translations and Blade views (popover user card partials, etc.).
Database
If you use ChaosModel, add nullable string columns for audit users and index them as you see fit:
1use Illuminate\Database\Migrations\Migration; 2use Illuminate\Database\Schema\Blueprint; 3use Illuminate\Support\Facades\Schema; 4 5return new class extends Migration 6{ 7 public function up(): void 8 { 9 Schema::table('your_table', function (Blueprint $table) {10 $table->actionBy(); // created_by, updated_by11 });12 }13 14 public function down(): void15 {16 Schema::table('your_table', function (Blueprint $table) {17 $table->dropActionBy();18 });19 }20};
Use Laravel’s SoftDeletes on the model when you want trashed rows, trashed filter, and restore / force-delete actions from ChaosTables.
Publish (optional)
Publish language files to override labels:
1php artisan vendor:publish --tag=zeus-chaos-translations
Translation keys used by the package live under the zeus-chaos::core.* namespace (for example record_info, created_at, created_by).
Next steps
See Usage for how to extend ChaosResource, call ChaosForms / ChaosTables / ChaosInfos, and use the page classes.
Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.