1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-27 02:06:52 +00:00
pixelfed/app/Models/AdminInvite.php
2022-12-19 22:30:50 -07:00

21 lines
380 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class AdminInvite extends Model
{
use HasFactory;
protected $casts = [
'used_by' => 'array',
'expires_at' => 'datetime',
];
public function url()
{
return url('/auth/invite/a/' . $this->invite_code);
}
}