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.
pixelfed/app/Models/UserRoles.php

28 lines
452 B
PHP

<?php
namespace App\Models;
use App\User;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UserRoles extends Model
{
use HasFactory;
protected $guarded = [];
protected function casts(): array
{
return [
'roles' => 'array',
'meta' => 'array',
];
}
public function user()
{
return $this->belongsTo(User::class);
}
}