|ProviderSpeciality newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality newQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality query() * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality whereProviderId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality whereSpecialityId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|ProviderSpeciality withoutTrashed() * @mixin \Eloquent */ class ProviderSpeciality extends Model { use HasFactory, SoftDeletes; protected $fillable = [ 'provider_id', 'speciality_id', ]; protected $casts = [ 'provider_id' => 'integer', 'speciality_id' => 'integer', ]; public function provider(): BelongsTo { return $this->belongsTo(Provider::class); } public function speciality(): BelongsTo { return $this->belongsTo(Speciality::class); } }