Files
exchange/app/Invoice.php
Jack Goh 4e448afc60 added relationship for invoice and booking
added confirm invoice feature (after user upload the image)
2018-06-28 15:22:25 +08:00

15 lines
244 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Invoice extends Model
{
protected $fillable = ['invoice_url','amount','booking_id'];
public function booking(){
return $this->hasOne('App\Booking');
}
}