php - Laravel 4 error in Netbeans for passing closure variable -
In Netbeans, I get an error on the following syntax:
if ($ user)
) {mail :: send ( 'Emailskauthkactivate', array ( 'link' = & gt; URL :: route ( 'account Active'), 'username' = & gt; $ username), work ($ Message) $ user {$ message- & gt; from ($ user- & gt; email, $ user- & gt; username) - Use & gt; Topic ('Activate Your Account');} ); Return Helper_Response :: Success ($ user); }
Error:
unexpected variable $ user
I do not know what went wrong. Any remedy?
< div class = "post-text" Aitmprop = "text">
you must use brackets to close use
section:
$ closeure = function ($ Message) ($ user) {...};
Comments
Post a Comment