laravel-user-email-verification icon indicating copy to clipboard operation
laravel-user-email-verification copied to clipboard

not working :(

Open bigoper opened this issue 8 years ago • 4 comments

Hey,

There are 2 installation instructions... which one to follow?

  1. https://github.com/edvinaskrucas/laravel-user-email-verification
  2. http://www.krucas.com/2016/04/user-email-verification-for-laravel-5/

Thanks, Avi

bigoper avatar Oct 13 '16 16:10 bigoper

ya same here, even publish didnt work

guncloud avatar Oct 17 '16 15:10 guncloud

Not working with Laravel 5.3 Command php artisan verification:make gives: Migrations created successfully! Installed VerifyController Updated routes.php

[ErrorException]
file_get_contents(/var/www/html/l5/app/Http/routes.php): failed to open stream: No such file or directory

parth-vora-7 avatar Jan 23 '17 12:01 parth-vora-7

Yes because it is not compatible for Laravel 5.3 because of the laravel's folder structure changes in 5.3. From now on route.php is web.php and location is inside routes folder. So Find: vendor/edvinaskrucas/laravel-user-email-verification/src/Krucas/LaravelUserEmailVerification/Console/MakeVerificationCommand.php

than change the appendRoutes function with the below one:

protected function appendRoutes()
{
    $path = base_path('routes/web.php');

    file_put_contents(
        $path,
        file_get_contents($path)."\n\n".file_get_contents(__DIR__.'/stubs/routes.stub')
    );
}

}

After that, try it php artisan verification:make

That's all !

burhanmt avatar Jan 25 '17 07:01 burhanmt

@burhanmt https://github.com/jrean/laravel-user-verification

jrean avatar Jan 25 '17 19:01 jrean