CustomerReturnCrownRefund.php 467 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class CustomerReturnCrownRefund extends Model
  5. {
  6. protected $connection = 'mysql_app';
  7. protected $table='customer_return_crown_refund';
  8. protected $guarded= [];
  9. public function customerReturn()
  10. {
  11. return $this->HasMany(CustomerReturn::class,'to_refund_id','id');
  12. }
  13. public function crown()
  14. {
  15. return $this->HasOne(User::class,'id','crown_id');
  16. }
  17. }