Php 如何将提醒表添加到数据库中?

Php 如何将提醒表添加到数据库中?,php,laravel,Php,Laravel,我想发送重置密码电子邮件,我需要使用laravel中的提醒表。我从laravel迁移了表,但没有任何提醒表 public function password(Request $request){ $user = User::where("email_addr",$request->email)->first(); if($user == null){ return "NOTFOUND"; } else{ $senti

我想发送重置密码电子邮件,我需要使用
laravel
中的
提醒表。我从
laravel
迁移了表,但没有任何
提醒

public function password(Request $request){
    $user = User::where("email_addr",$request->email)->first();
    if($user == null){
        return "NOTFOUND"; 
    }

    else{
        $sentinelUser = Sentinel::findById($user->id);
        $reminder = Reminder::exists($sentinelUser) ? : Reminder::create($sentinelUser);
        $this->sendEmail($user, $reminder->code);

        return "RESET";
   }

public function sendEmail($user, $code){

    Mail::send(
        'email.forgot',
        ['user' => $user, 'code' => $code],
        function($message) use ($user){
            $message->to($user->email);
            $message->subject("Hello $user->name" , "Reset password.");
        }
    );

}
当我试图发送电子邮件时,我遇到如下错误:

“找不到类'Cartalyst\Sentinel\Native\Facades\rementer'


如何添加提醒表?

打开位于config/app.php的Laravel配置文件并添加以下行

$providers
数组中添加以下内容

Cartalyst\Sentinel\Laravel\SentinelServiceProvider::class,
$alias
数组中添加以下内容:

'Activation' => Cartalyst\Sentinel\Laravel\Facades\Activation::class,
'Reminder'   => Cartalyst\Sentinel\Laravel\Facades\Reminder::class,
'Sentinel'   => Cartalyst\Sentinel\Laravel\Facades\Sentinel::class,

在控制器文件中,在
名称空间
后添加
使用提醒
,我解决了问题。您需要更新composer。更新composer时,我的数据库中会出现提醒表

composer update

是否已将其添加到您的composer文件并安装了它?是的。但我得到了一个类似这样的错误:找不到基表或视图:db_name.members'不存在