mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
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
This commit is contained in:
@@ -7,4 +7,9 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class PurchaseOrder extends Model
|
||||
{
|
||||
protected $fillable = ['image_url','amount','booking_id'];
|
||||
|
||||
public function booking()
|
||||
{
|
||||
return $this->belongsTo(Booking::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user