mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-05 13:49:02 +00:00
2.5 - Adding Tickets to Orders
This commit is contained in:
15
app/Order.php
Normal file
15
app/Order.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Order extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
public function tickets()
|
||||
{
|
||||
return $this->hasMany(Ticket::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user