<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class StaticPage extends Model
{

    protected $table = 'static_page';

    protected $fillable = ['title','url','html','user_id','is_published','created_at', 'meta','web_notice', 'cover_image','cover_image_text'];

    public function user(){
        return $this->hasOne('App\User','id','user_id');
    }
}
