Vote count:
0
I am following phpacademy's Laravel 4 Authentication tutorial series and have come across a stumbling block in the emailer section (part 6 of 16).
I'm completing this in phpstorm, with _ide_helper.php installed from http://ift.tt/1xuOWLc
When I use the Mail::send method in the HomeController.php file, the code helper returns the following error message.
method "to" not found in class
Further explanation is given by
Referenced method not found in subject class
A point in the right direction for resolving this issue would be very much appreciated
Here is the full code for the HomeController class, including this Mail:send method which is causing issues:
class HomeController extends BaseController
{
public function home()
{
Mail::send('emails.auth.test', array('name'=>'User'), function($message)
{
$message->to('user@gmail.com','User')->subject('Test');
});
}
}
asked 40 secs ago
Aucun commentaire:
Enregistrer un commentaire