Remove unused methods

This commit is contained in:
Marcus Moore 2023-03-16 15:39:02 -07:00
parent a50ddb4a5d
commit ca677038b0
No known key found for this signature in database

View file

@ -288,44 +288,35 @@ class AssetFactory extends Factory
});
}
public function assignedToUser()
{
return $this->state(function () {
return [
'model_id' => function () {
return AssetModel::where('name', 'Macbook Pro 13')->first() ?? AssetModel::factory()->mbp13Model();
},
'assigned_to' => \App\Models\User::factory()->create()->id,
'assigned_type' => \App\Models\User::class,
];
});
}
public function assignedToLocation()
{
return $this->state(function () {
return [
'model_id' => function () {
return AssetModel::where('name', 'Macbook Pro 13')->first() ?? AssetModel::factory()->mbp13Model();
},
'assigned_to' => Location::factory(),
'assigned_type' => Location::class,
];
});
}
public function assignedToAsset()
{
return $this->state(function () {
return [
'model_id' => function () {
return AssetModel::where('name', 'Macbook Pro 13')->first() ?? AssetModel::factory()->mbp13Model();
},
'assigned_to' => \App\Models\Asset::factory()->create()->id,
'assigned_type' => \App\Models\Asset::class,
];
});
}
// public function assignedToUser()
// {
// return $this->state(function () {
// return [
// 'assigned_to' => User::factory(),
// 'assigned_type' => User::class,
// ];
// });
// }
//
// public function assignedToLocation()
// {
// return $this->state(function () {
// return [
// 'assigned_to' => Location::factory(),
// 'assigned_type' => Location::class,
// ];
// });
// }
//
// public function assignedToAsset()
// {
// return $this->state(function () {
// return [
// 'assigned_to' => Asset::factory(),
// 'assigned_type' => Asset::class,
// ];
// });
// }
public function requiresAcceptance()
{