1234567891011121314151617181920212223 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Administrator
- * Date: 2019/4/23
- * Time: 19:56
- */
- namespace App\Transfer;
- use Illuminate\Database\Eloquent\Model;
- class HrtoolCategory extends Model
- {
- protected $connection = "transfer_center";
- protected $table = "qs_hrtools_category";
- protected $guarded = [];
- public function hrtools()
- {
- return $this->hasMany(Hrtool::class, 'h_typeid', 'c_id');
- }
- }
|