Skip to content

Commit

Permalink
add strict models
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclermont committed Dec 15, 2023
1 parent e3f7dee commit 20dc9b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace App\Providers;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\App;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
Expand All @@ -21,5 +23,8 @@ protected function registerTelescopeInLocal(): void
}
}

public function boot() {}
public function boot()
{
Model::shouldBeStrict(App::environment('testing'));
}
}

0 comments on commit 20dc9b7

Please sign in to comment.