josiasmontag / laravel-email-verification

Laravel package to handle user verification using an activation mail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Class 'Lunaweb\User\Http\Controllers\Controller' not found

antonzapevalov opened this issue · comments

Laravel 5.5

In your readme.md file you override default Controller to custom Lunaweb\User\Http\Controllers\Controller in file RegisterController.php. Why?

use Lunaweb\EmailVerification\Traits\VerifiesEmail;
use Lunaweb\User\Http\Controllers\Controller;

class RegisterController extends Controller
{

    use RegistersUsers, VerifiesEmail;


    public function __construct()
    {
          $this->middleware('guest', ['except' => ['verify', 'showResendVerificationEmailForm', 'resendVerificationEmail']]);
          $this->middleware('auth', ['only' => ['showResendVerificationEmailForm', 'resendVerificationEmail']]);
    }

    // ...

}

And that Controller not found)))

image

No need to override Controller. This was an error in the RADME.
Fixed - thanks!