PackPoem.php
334 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);
}
}