<?php namespace app\model; class OrderBooks extends base { // protected $json = ['code_pic']; public function orderInfo() { return self::belongsTo(Orders::class, 'order_id'); } }