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.

55 lines
1.1 KiB
PHP

<?php
namespace App\Models;
class Partner extends BaseSoftDeleteModel
{
protected $table = 'partner';
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'uid',
'category', 'title', 'link', 'image', 'width', 'height',
'status',
'created_id',
'created_at', 'updated_at', 'deleted_at'
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
];
protected $visible = [
'uid',
'category', 'title', 'link', 'image', 'width', 'height',
'status',
'created_at'
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'category' => 'integer',
'width' => 'integer',
'height' => 'integer',
'status' => 'integer'
];
public function user()
{
return $this->belongsTo('App\Models\User', 'created_id');
}
}