123456789101112131415161718 |
- <?php
- namespace App\Models\TravelImage;
- use Illuminate\Database\Eloquent\Model;
- class TravelImageClass extends Model{
- // protected $connection = 'mysql_szy';
- protected $table='travel_img_class';
- public function get_image(){
- return $this->hasMany(TravelImage::class,'class_id');
- }
- public function get_folder(){
- return $this->hasMany(TravelImageFolder::class,'image_class_id');
- }
- }
|