Skip to content

Instantly share code, notes, and snippets.

@hodaddy
Created January 31, 2014 17:56
Show Gist options
  • Save hodaddy/8738701 to your computer and use it in GitHub Desktop.
Save hodaddy/8738701 to your computer and use it in GitHub Desktop.
InvoiceTicket Model
<?php
class InvoiceTicket extends Eloquent {
protected $table = 'invoice_ticket';
public function getTicket()
{
return $this->hasOne('Ticket', 'id', 'ticket_id');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment