Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
29 lines
484 B
PHP
29 lines
484 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
|
|
class Tag extends Model
|
|
{
|
|
protected $fillable = [
|
|
'name',
|
|
'use_count',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'use_count' => 'integer',
|
|
];
|
|
}
|
|
|
|
public function articles(): BelongsToMany
|
|
{
|
|
return $this->belongsToMany(Article::class);
|
|
}
|
|
}
|