theloftstore/app/Permission.php
2025-02-26 08:57:46 +01:00

30 lines
599 B
PHP

<?php
namespace Vanguard;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
/**
* @property int $id
* @property string $name
* @property string $display_name
* @property string $description
* @property bool $removable
* @property Carbon $created_at
* @property Carbon $deleted_at
*/
class Permission extends Model
{
use HasFactory;
protected $table = 'permissions';
protected $fillable = ['name', 'display_name', 'description'];
protected $casts = [
'removable' => 'boolean',
];
}