1234567891011121314151617181920 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class Studio extends Model
- {
- protected $table='studios';
- public function get_order(){
- return $this->hasMany(Ordertest::class,'user_id','user_id');
- }
- public function get_user(){
- return $this->belongsTo(User::class,'user_id');
- }
- public function get_bonus(){
- return $this->belongsTo(StudioUser::class,'user_id','user_id');
- }
- }
|