PackPoem.php
427 Bytes
<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
class PackPoem extends Model
{
use HasDateTimeFormatter;
protected $table = 'pack_poem';
// protected $with = ['poem'];
public function poem()
{
return $this->belongsTo(OnePoem::class);
}
public function poem2()
{
return $this->belongsTo(OnePoem2::class);
}
}