InterestCircle.php 469 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2019/6/5
  6. * Time: 16:24
  7. */
  8. namespace App\Models;
  9. use Illuminate\Database\Eloquent\Model;
  10. use Illuminate\Database\Eloquent\SoftDeletes;
  11. class InterestCircle extends Model
  12. {
  13. //
  14. use SoftDeletes;
  15. protected $table = 'interest_circles';
  16. protected $guarded = [];
  17. public function imgs()
  18. {
  19. return $this->hasMany('App\Models\InterestCircleMessageImg', 'msg_id', 'id');
  20. }
  21. }