php - syntax Error in Mail::send Laravel -


I'm not sure why I'm getting this simple error is the error telling me that ; should not be.

syntax error, unexpected ';'

With my code below I did not find any errors:

  mail :: send ('emails.invite.invite', $ user, function ( $ Message) ($ email) {$ message- & gt; Topic ('Message subject'); $ message- & gt; ('noreply@example.net', 'Sender name'); $ message- & gt; ; From ($ email); // recipient address});   

But when I add an array, I get the error:

  mail :: send ('emails.invite.invite', array ( 'Link' = & gt; URL: route ('account active', $ code), $ user, function ($ message) usage ($ email) {$ message- & gt; topic ('message subject'); $ From message- & gt; ('norele @ example.net', 'sender name'); $ message-> ($ email); // recipient address});    

  if ($ user) {mail :: send ('emails.invite.invite', array ('link' = & Gt; URL :: Way ('account-active', $ code), 'Name' = & gt; $ name), function ($ message) usage ($ email) {$ message- & gt; topic ('message subject'); $ message- & gt; ('noreplay / example.net' , 'Sender Name'); $ Message- & gt; From ($ email); // Recipient Address});    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -