I updated my application from 5 to 5.2. Now when I call Mail::send() it return an exception Class mailer does not exist.
Mail::send('emails.mail', ['data' => $content], function ($m) use ($to, $subject,$toname) {
$m->to($to, $toname)->subject($subject);
});
When I open Illuminate\Support\Facades\Mail class there is only one function
protected static function getFacadeAccessor()
{
return 'mailer';
}
Please help. If anyone have any idea