<?php
/**
 * @author samark chaisanguan
 * @email samarkchsngn@gmail.com
 */
namespace App\Models\Blog;

use Illuminate\Database\Eloquent\Model;

# use Illuminate\Database\Eloquent\SoftDeletes;

class BlogModel extends Model
{
    # use SoftDeletes;

    protected $fillable = [
        'id',
        'topic',
        'detail',
        'created_at',
        'updated_at',
    ];

    /**
     * set table name
     * @var string
     */
    protected $table = 'blog';

    /**
     * set casting value
     * @var array
     */
    protected $casts = [];

    /**
     * set append attribute
     * use get{NameColumn}Attribute function
     * @var array
     */
    protected $appends = [];

    /**
     * set datetime column
     * @var array
     */
    protected $dates = ['created_at', 'updated_at'];
}