3.6 - Refactoring and Redundant Test Coverage

This commit is contained in:
Adam Wathan
2016-11-15 13:22:44 -05:00
parent 2e92881fb6
commit 9fe42a1aaa
3 changed files with 31 additions and 1 deletions

View File

@@ -12,4 +12,9 @@ class Ticket extends Model
{
return $query->whereNull('order_id');
}
public function release()
{
$this->update(['order_id' => null]);
}
}