Files
exchange/app/PurchaseOrder.php
T
Jack Goh 2b4ddadfcb rename book_id in po table to booking_id to perform ORM relantionship
added relationship between booking and po
updated settings shows for different role
added function to display po for admin
2018-06-28 10:06:26 +08:00

16 lines
261 B
PHP

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