2017-11-03 20:38:09 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
|
|
|
class Information extends Model
|
|
|
|
{
|
|
|
|
use SoftDeletes;
|
|
|
|
|
|
|
|
const CATEGORIES = [
|
|
|
|
0 => ['label' => 'お知らせ', 'class' => 'badge-info'],
|
|
|
|
1 => ['label' => 'アップデート', 'class' => 'badge-success'],
|
|
|
|
2 => ['label' => '不具合情報', 'class' => 'badge-danger'],
|
|
|
|
3 => ['label' => 'メンテナンス', 'class' => 'badge-warning']
|
|
|
|
];
|
|
|
|
|
2019-03-14 00:04:53 +09:00
|
|
|
protected $fillable = [
|
|
|
|
'category', 'pinned', 'title', 'content'
|
|
|
|
];
|
|
|
|
|
2017-11-03 20:38:09 +09:00
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
}
|