This commit is contained in:
2025-08-18 11:20:35 +08:00
parent 5642089c62
commit ad619362b6
+3 -3
View File
@@ -25,9 +25,9 @@ class CategorieLogic
public function find($id)
{
return Categorie::with('translation')
->where('status',1)
->where('locale', locale())
return Categorie::with(['translation' => function ($query) {
$query->where('locale', locale());
}])->where('status', 1)
->find($id);
}