2.5 - Adding Tickets to Orders

This commit is contained in:
Adam Wathan
2016-11-08 16:39:09 -05:00
parent 46640c5096
commit 25cc370adf
7 changed files with 103 additions and 1 deletions

15
app/Order.php Normal file
View 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);
}
}