19 lines
382 B
PHP
19 lines
382 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use EloquentFilter\Filterable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Peidikeji\Keywords\Models\Keywords;
|
|
|
|
class CropStructure extends Model
|
|
{
|
|
use Filterable;
|
|
|
|
protected $fillable = ['time_year', 'crops_cate_id', 'crops_output'];
|
|
|
|
public function cropsCate(){
|
|
return $this->belongsTo(Keywords::class, 'crops_cate_id');
|
|
}
|
|
}
|