You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
namespace App\Models;
use App\Documents\UserDocument; use App\Models\Traits\Validatable; use App\Models\Traits\ValidationMaker; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Validation\Rule; use Jenssegers\Mongodb\Eloquent\SoftDeletes;
class ILaravel extends Authenticatable { use HasFactory, Validatable, ValidationMaker, SoftDeletes;
protected $table = 'ilaravels';
protected $fillable = ['user_id', 'group_id','name', 'email', 'email_verified_at', 'password'];
protected $hidden = ['password', 'remember_token'];
protected $casts = [ 'email_verified_at' => 'datetime' ];
public function policyCheckCustom(): bool { return true; }
public function rules(): array { return [ 'name' => 'required|string|max:255', 'user_id' => ['required'], 'email' => ['required', 'email', Rule::unique($this->getTable(), 'email')], ]; }
}
|