NoticeCategory.php 427 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2019/4/23
  6. * Time: 10:24
  7. */
  8. namespace App\Transfer;
  9. use Illuminate\Database\Eloquent\Model;
  10. class NoticeCategory extends Model
  11. {
  12. protected $connection = "transfer_center";
  13. protected $table = "qs_notice_category";
  14. protected $guarded = [];
  15. public function notices()
  16. {
  17. return $this->hasMany(Notice::class, 'type_id', 'id');
  18. }
  19. }