2015-10-14 96 views
0

我使用流明(Laravel 5.1下方)。未定义指数加密法流明

我有一个简单的代码

. 
. 
. 
$this->info('sending email to: '. $user->full_name); 

    Mail::send('reminders.attendance', ['user' => $user, 'thisRelation' => $thisRelation ], function ($m) use 
       ($user) { 
        $m->to($user->email, $user->full_name)->subject('EduStatus Attendance Reminder'); 
       }); 

我可以证实,存在一个视图文件。当我把这段代码放在routes.php文件中,并且简单地点击url时,电子邮件就被触发了。

我试图使这是一个artisan command但是当我在我的command file使用相同的代码,它只是说

[ErrorException] 
    Undefined index: cipher 

当我删除邮件行,它工作得很好。无论我打印到控制台的作品。 有什么想法?

回答

0

这是我自己的愚蠢的错误。不知怎的,我编辑app.phpconfig folder,该文件没有价值的cipher密钥。