Skip to content

Instantly share code, notes, and snippets.

Mail::send('emails.upgraded', $data, function($message)
{
$message->to($user->email, $user->first_name)
->subject('Your account has been upgraded. Mom is proud!');
});
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()
trait DocumentTrait
{
public function markSent()
{
$this->status = 1;
$this->save();
}
public function markDecision($data)
{