FIX: add with methods to selecting comments and content pages
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user