|Student newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Student newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Student onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|Student query() * @method static \Illuminate\Database\Eloquent\Builder|Student whereAddressNumber($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereBirthDate($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereCityId($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereComplement($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereDocumentNumber($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereEmail($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereGender($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereHowDidYouKnowUs($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereNeighborhood($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereNotes($value) * @method static \Illuminate\Database\Eloquent\Builder|Student wherePayerName($value) * @method static \Illuminate\Database\Eloquent\Builder|Student wherePhone($value) * @method static \Illuminate\Database\Eloquent\Builder|Student wherePhotoUrl($value) * @method static \Illuminate\Database\Eloquent\Builder|Student wherePostalCode($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereStateId($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereStreet($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereUnitId($value) * @method static \Illuminate\Database\Eloquent\Builder|Student whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Student withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|Student withoutTrashed() * @mixin \Eloquent */ class Student extends Model { use HasFactory, SoftDeletes; protected $table = 'students'; protected $guarded = ['id']; protected $casts = [ 'birth_date' => 'date', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at' => 'datetime', ]; public function unit(): BelongsTo { return $this->belongsTo(Unit::class, 'unit_id'); } public function city(): BelongsTo { return $this->belongsTo(City::class, 'city_id'); } public function state(): BelongsTo { return $this->belongsTo(State::class, 'state_id'); } }