12345678910111213141516171819202122 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class CustomerReturnCrownRefund extends Model
- {
- protected $connection = 'mysql_app';
- protected $table='customer_return_crown_refund';
- protected $guarded= [];
- public function customerReturn()
- {
- return $this->HasMany(CustomerReturn::class,'to_refund_id','id');
- }
- public function crown()
- {
- return $this->HasOne(User::class,'id','crown_id');
- }
- }
|