类型
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user