From 8f95e68e6151b0d28b49f6b7bf144d05366f479b Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sat, 3 Sep 2022 12:49:20 -0400 Subject: [PATCH] work on fixing bidders and vehicles filament --- .../RelationManagers/VehicleOwnerRelationManager.php | 2 +- app/Models/Bidders.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filament/Resources/VehiclesResource/RelationManagers/VehicleOwnerRelationManager.php b/app/Filament/Resources/VehiclesResource/RelationManagers/VehicleOwnerRelationManager.php index a013ecb..0679234 100644 --- a/app/Filament/Resources/VehiclesResource/RelationManagers/VehicleOwnerRelationManager.php +++ b/app/Filament/Resources/VehiclesResource/RelationManagers/VehicleOwnerRelationManager.php @@ -21,7 +21,7 @@ class VehicleOwnerRelationManager extends RelationManager return $form ->schema([ Forms\Components\Select::make('bidder_assigned_number') - ->label('number') + ->label('Number') ->required(), ]); } diff --git a/app/Models/Bidders.php b/app/Models/Bidders.php index e45eaec..ff3b87d 100644 --- a/app/Models/Bidders.php +++ b/app/Models/Bidders.php @@ -38,6 +38,6 @@ class Bidders extends Model public function vehicles() { - return $this->hasMany('App\Models\Vehicles', 'owner', 'bidder_assigned_number'); + return $this->hasMany(Vehicles::class, 'owner', 'bidder_assigned_number'); } }