|Broker newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Broker newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Broker query() * @method static \Illuminate\Database\Eloquent\Builder|Broker whereBio($value) * @method static \Illuminate\Database\Eloquent\Builder|Broker whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Broker whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Broker whereLocation($value) * @method static \Illuminate\Database\Eloquent\Builder|Broker wherePhone($value) * @method static \Illuminate\Database\Eloquent\Builder|Broker whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Broker whereVerified($value) * @mixin \Eloquent */ class Broker extends Model { protected $fillable = ['bio', 'location', 'phone']; protected function casts(): array { return [ 'verified' => 'boolean', ]; } public function user(): MorphOne { return $this->morphOne(User::class, 'role'); } }