StudioExpress.php 367 B

123456789101112131415161718
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class StudioExpress extends Model
  5. {
  6. protected $table='studio_express';
  7. public function get_express(){
  8. return $this->hasMany(StudioExpress::class,'number','number');
  9. }
  10. public function get_order(){
  11. return $this->hasOne(StudioOrder::class,'id','order_id');
  12. }
  13. }