Erster Upload
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class BatchOrigin extends Model
|
||||
{
|
||||
protected $fillable = ['batch_id', 'spice_id', 'supplier_id', 'origin_country', 'farmer', 'notes'];
|
||||
|
||||
public function batch()
|
||||
{
|
||||
return $this->belongsTo(Batch::class);
|
||||
}
|
||||
|
||||
public function spice()
|
||||
{
|
||||
return $this->belongsTo(Spice::class);
|
||||
}
|
||||
|
||||
public function supplier()
|
||||
{
|
||||
return $this->belongsTo(Supplier::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user