SmmPostLog.php 429 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\Model;
  5. class SmmPostLog extends Model
  6. {
  7. use HasDateTimeFormatter;
  8. protected $table = 'smm_post_log';
  9. public function account()
  10. {
  11. return $this->hasOne(SmmUserAccount::class,'id','account_id');
  12. }
  13. public function post() {
  14. return $this->hasOne(SmmPost::class,'id','post_id');
  15. }
  16. }