Check for N+1 problems on the index and other overview pages.
Add
namespace App\Providers;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function boot(): void
{
Model::preventLazyLoading();
Model::preventAccessingMissingAttributes();
Model::preventSilentlyDiscardingAttributes();
}
}
Check for N+1 problems on the index and other overview pages.
Add