Closed brunobacha closed 4 months ago
<?php
namespace App\Models;
use App\Models\BaseModel; use Illuminate\Support\Facades\Config; use OwenIt\Auditing\Contracts\Auditable;
class AuditableModel extends BaseModel implements Auditable { use \OwenIt\Auditing\Auditable;
/** * {@inheritdoc} */ public function transformAudit(array $data): array { $data['system_id'] = optional(Config::get('system'))->id; return $data; }
}
2. composer update or php artisan package:discover --ansi
In Facade.php line 354:
A facade root has not been set.
I couldn't reproduce the problem, maybe it is related to your environment or your implementation
Closed due inactivity
Steps to Reproduce
namespace App\Models;
use App\Models\BaseModel; use Illuminate\Support\Facades\Config; use OwenIt\Auditing\Contracts\Auditable;
class AuditableModel extends BaseModel implements Auditable { use \OwenIt\Auditing\Auditable;
}
In Facade.php line 354:
A facade root has not been set.