27 lines
478 B
PHP
27 lines
478 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Cultivation extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table='cultivations';
|
|
|
|
protected $fillable=[
|
|
'pond_id',
|
|
'day',
|
|
'weight',
|
|
'feed_spent',
|
|
'total_feed_spent',
|
|
'total_fish_weight',
|
|
];
|
|
|
|
public function pond() {
|
|
return $this->belongsTo(Pond::class, 'pond_id');
|
|
}
|
|
}
|