Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working :( #5

Open
bigoper opened this issue Oct 13, 2016 · 4 comments
Open

not working :( #5

bigoper opened this issue Oct 13, 2016 · 4 comments

Comments

@bigoper
Copy link

bigoper commented Oct 13, 2016

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

@guncloud
Copy link

ya same here, even publish didnt work

@parth-vora-7
Copy link

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

@burhanmt
Copy link

burhanmt commented Jan 25, 2017

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 !

@jrean
Copy link

jrean commented Jan 25, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants