Models/User.php

larasend · app/Models/User.php · php · MIT
database, Database / ORM

Laravel Eloquent User model with authentication, email verification, and workspace relations.

// Source: https://github.com/savvyagents/larasend | License: MIT | Copyright 2026 Larasend
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace App\Models;

use App\Notifications\ControlEmailVerification;
use App\Notifications\ControlPasswordReset;
use App\Support\ControlMail;
use Database\Factories\UserFactory;
use Illuminate\Contracts\Auth\MustVerifyEmail as MustVerifyEmailContract;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Attributes\Hidden;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Fo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key