Skip to content

Commit

Permalink
Fixed contact model.. whoops!
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRafn committed Dec 5, 2016
1 parent bff85ec commit 65e99ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Models/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ class Contact extends Model
/** @var Customer $customer */
public $customer;

public function __construct( Request $request, array $data )
public function __construct( Request $request, $data )
{
\Log::info($data['customer']);
$this->entity = str_replace(':customerNumber', $data['customer']->customerNumber, $this->entity);
$this->entity = str_replace(':customerNumber', $data->customer->customerNumber, $this->entity);

parent::__construct( $request, $data );
}
Expand Down

0 comments on commit 65e99ad

Please sign in to comment.