LinkCategory.php 422 B

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