Files
Website/app/Models/Permission.php
2023-05-24 21:36:42 +00:00

35 lines
576 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);
}
}