Import Fun Completed and Sticker Master
This commit is contained in:
@@ -32,4 +32,9 @@ class Plant extends Model
|
||||
{
|
||||
return $this->hasMany(Line::class);
|
||||
}
|
||||
|
||||
public function getLineNames()
|
||||
{
|
||||
return $this->hasMany(Line::class, 'plant_id', 'id'); // Ensure 'plant_id' is the foreign key in 'lines' table
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user