This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mail::send('emails.upgraded', $data, function($message) | |
{ | |
$message->to($user->email, $user->first_name) | |
->subject('Your account has been upgraded. Mom is proud!'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
$this->newInvoice->insert($data, 'store'); | |
} | |
catch(ValidationException $e){ | |
$fixedInputs = Input::except($this->newInvoice->arrayInputs); | |
$arrayInputs = Input::only($this->newInvoice->arrayInputs); | |
$arrayInputs = Sort::getArrayInputs($arrayInputs); | |
return Redirect::back() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait DocumentTrait | |
{ | |
public function markSent() | |
{ | |
$this->status = 1; | |
$this->save(); | |
} | |
public function markDecision($data) | |
{ |
NewerOlder