f82a3ebc5766d8d09bb7e97f3708d452f75da8f3
Root cause of the "Fișa #0" bug: the page had public ?WorkOrder \$record = null; and the route slug was work-orders/{record}/dashboard. Livewire/Laravel saw the {record} param and the typed \$record property with the same name and attempted route model binding via BelongsToTenant scope. When that resolution didn't return a Model instance in a Livewire hydration context, mount() ended up being called with 0, so the button worked but the destination page redirected saying "Fișa #0". Fix: rename the route parameter to {wo} so it no longer collides with the property name, receive it as int|string in mount(), and do the find() ourselves. The property stays as \$record for the Blade view but is now always populated by our own code. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
AutoCRM
SaaS CRM multi-tenant pentru autoservice și magazin piese auto.
Stack
- Laravel 12 + Filament 5
- Octane (FrankenPHP runtime)
- MariaDB 11.4
- Redis 7
- Stancl/Tenancy v3 (single-DB multi-tenant)
Domenii
service.mir.md— panou central super-admin<slug>.service.mir.md— instanță tenant
Documentație
Vezi /root/service/docs/00-index.md în repo-ul părinte (separat de cod) pentru:
- Arhitectură + decizii
- Setup multi-tenant (3 niveluri izolare)
- Toate cele 31 module preluate din prototip
- Operațiuni (deploy / backup / add-tenant / troubleshoot)
Dev local
cp .env.example .env
composer install
npm install
php artisan key:generate
php artisan migrate
npm run build
php artisan octane:start --server=frankenphp
Deploy
Push pe main → Coolify auto-deploy.
License
Proprietary. © 2026.
Description
Languages
PHP
78%
Blade
21.7%
Dockerfile
0.2%