You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
977 B
PHTML

2 years ago
<?php
namespace App\Models;
use Illuminate\Support\Str;
use Carbon\Carbon;
class Seo extends BaseModel
{
protected $table = 'seo';
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'uid', 'page', 'title', 'description', 'keywords',
'created_id', 'updated_id', 'deleted_id',
'created_at', 'updated_at', 'deleted_at'
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
];
protected $visible = [
'uid', 'page', 'title', 'description', 'keywords',
'created_id',
'created_at', 'updated_at'
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
];
public function user()
{
return $this->belongsTo('App\Models\User', 'created_id');
}
}