FIX: add with methods to selecting comments and content pages

This commit is contained in:
Michal Kváček
2016-10-04 13:14:21 +02:00
parent ab90b907f8
commit 1e310f0da5
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -62,6 +62,7 @@ class Content extends Model
{
return Content::where('status', '!=', Content::STATUS_DRAFT)
->select('contents.*')
->with('author')
->join('modules', 'modules.handler', '=', 'contents.module_handler')
->where('language', LaravelLocalization::getCurrentLocale())
->where('modules.enabled', true);