• This project
    • Loading...
  • Sign in

OnePoem / OnePoem-Server

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • OnePoem-Server
  • app
  • Models
  • PackPoem.php
  • 李帅's avatar
    1.又重构一言表,一对多已完成 · 932a3028
    932a3028
    李帅 authored 2023-03-24 16:44:00 +0800
PackPoem.php 427 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?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);
    }
}