FEATURE: move blog module into own repository

This commit is contained in:
Michal Kváček
2017-08-22 14:07:21 +02:00
commit 02bd68543e
49 changed files with 1319 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace Modules\Blog\Article\Entities;
use App\Models\Content\Content;
class Article extends Content
{
protected $table = 'contents';
public function comments()
{
return $this->hasMany(Comment::class, 'content_id')
->where('approved', true);
}
}