42 lines
662 B
PHP
42 lines
662 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class AdminPermission
|
|
*
|
|
* @property int $id
|
|
* @property int $admin_id
|
|
* @property string $permission
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class AdminPermission extends Model
|
|
{
|
|
protected $table = 'admin_permissions';
|
|
public static $snakeAttributes = false;
|
|
|
|
protected $casts = [
|
|
'admin_id' => 'int'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'admin_id',
|
|
'permission'
|
|
];
|
|
|
|
public function admin()
|
|
{
|
|
return $this->belongsTo(Admin::class);
|
|
}
|
|
}
|