1234567891011121314151617181920212223 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Administrator
- * Date: 2019/4/23
- * Time: 10:24
- */
- namespace App\Transfer;
- use Illuminate\Database\Eloquent\Model;
- class NoticeCategory extends Model
- {
- protected $connection = "transfer_center";
- protected $table = "qs_notice_category";
- protected $guarded = [];
- public function notices()
- {
- return $this->hasMany(Notice::class, 'type_id', 'id');
- }
- }
|