Ajustando modelos
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\CalculoFondo;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
@@ -21,6 +20,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
Model::preventLazyLoading(! app()->isProduction());
|
||||
$isProduction = app()->isProduction();
|
||||
|
||||
Model::shouldBeStrict(! $isProduction);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user