Closed stepanenko3 closed 2 years ago
If we set Model::preventLazyLoading(true), we get a Attempted to lazy load [permissions] on model [Spatie\\Permission\\Models\\Role] but lazy loading is disabled. error My solution fix it
Model::preventLazyLoading(true)
Attempted to lazy load [permissions] on model [Spatie\\Permission\\Models\\Role] but lazy loading is disabled.
If we set
Model::preventLazyLoading(true)
, we get aAttempted to lazy load [permissions] on model [Spatie\\Permission\\Models\\Role] but lazy loading is disabled.
error My solution fix it