PostStore.php 381 B

1234567891011121314151617181920212223
  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. class PostStore extends Model
  11. {
  12. protected $table = 'post_store';
  13. protected $guarded = [];
  14. public function imgs()
  15. {
  16. return $this->hasMany('App\Models\PostStoreImgs', 'post_store_id', 'id');
  17. }
  18. }