Files
Website/app/Models/Permission.php
2023-04-11 14:08:53 +10:00

34 lines
575 B
PHP

<?php
namespace App\Models;
use App\Traits\Uuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Permission extends Model
{
use HasFactory;
use Uuids;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'permission',
'user',
];
/**
* Get the User associated with this model
*
* @return BelongsTo
*/
public function user()
{
return $this->belongsTo(User::class);
}
}