MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/snap.cafsinfotech.in/app/Models/Invitation.php
<?php

namespace App\Models;

use App\Events\InvitationCreated;
use Eloquent as EloquentIdeHelper;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;

/**
 * App\Models\Invitation
 *
 * @property int $id
 * @property string $key
 * @property string $email
 * @property Carbon $expires_at
 * @property int|null $role_id
 * @method static EloquentBuilder|Invitation newModelQuery()
 * @method static EloquentBuilder|Invitation newQuery()
 * @method static EloquentBuilder|Invitation query()
 * @method static EloquentBuilder|Invitation whereEmail($value)
 * @method static EloquentBuilder|Invitation whereExpiresAt($value)
 * @method static EloquentBuilder|Invitation whereId($value)
 * @method static EloquentBuilder|Invitation whereKey($value)
 * @method static EloquentBuilder|Invitation whereRoleId($value)
 * @mixin EloquentIdeHelper
 */

class Invitation extends Model
{
    /**
     * @var bool
     */
    public $timestamps = false;

    /**
     * @var array
     */
    protected $fillable = [
        'key',
        'email',
        'expires_at',
        'role_id',
    ];

    /**
     * @var array
     */
    protected $casts = [
        'key' => 'string',
        'email' => 'string',
        'role_id' => 'int',
    ];

    /**
     * @var array
     */
    protected $dates = [
        'expires_at',
    ];

    protected $dispatchesEvents = [
        'created' => InvitationCreated::class,
        'updated' => InvitationCreated::class,
    ];
}