This commit is contained in:
2020-09-17 09:00:08 +08:00
commit 6366331f55
714 changed files with 167687 additions and 0 deletions

18
app/Models/Article.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use App\Models\Traits\BelongsToCategory;
use App\Models\Traits\HasOneCover;
class Article extends Model
{
use HasOneCover, BelongsToCategory;
public function getLinkAttribute()
{
return route('article.show', $this);
}
}