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

Followed the instruction properly. Not able to hit the watchtower routes #14

Open
hammad786 opened this issue Oct 11, 2016 · 3 comments

Comments

@hammad786
Copy link

Using fresh Laravel 5.3 with PHP 7.0. I followed all the instructions properly.

When I hit /watchtower it redirects me to /home. Spent lots of time figuring out the issue and so far no luck.

http://www.hammadbaig.com/epos/public/login

user: [email protected]
pass: 123456

Would you please look into this? Is there any way I can provide you FTP details safely? I mean privately.

I had used watchtower in 5.2 it worked like charm and saved my lots of time. Now I want to use it on Laravel 5.3

@landjea
Copy link
Contributor

landjea commented Oct 12, 2016

What do you get when you run php artisan route:list in your console?

On Tue, Oct 11, 2016 at 4:14 PM, hammad786 [email protected] wrote:

Using fresh Laravel 5.3 with PHP 7.0. I followed all the instructions
properly.

When I hit /watchtower it redirects me to /home. Spent lots of time
figuring out the issue and so far no luck.

http://www.hammadbaig.com/epos/public/login

user: [email protected]
pass: 123456

Would you please look into this? Is there any way I can provide you FTP
details safely? I mean privately.

I had used watchtower in 5.2 it worked like charm and saved my lots of
time. Now I want to use it on Laravel 5.3


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#14, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AEhPsLBFFFQEgX0FwZY_2LqdL4zOLsJSks5qy-4IgaJpZM4KUDfg
.

@hammad786
Copy link
Author

Thanks for the response.

This is what I get when I run route:list

http://www.hammadbaig.com/epos/public/routes.txt

Check Middleware column, seems something went wrong there.

In Config/watchtower.php

'auth_routes' => [
'login' => (str_contains( app()->version(), '5.2') ? '' : '/auth').'/login',
'logout' => (str_contains( app()->version(), '5.2') ? '' : '/auth').'/logout',
'register' => (str_contains( app()->version(), '5.2') ? '' : '/auth').'/register',
],

'route' => [
'prefix' => '',
'as' => 'watchtower.',
'middleware'=> ( str_contains( app()->version(), '5.2') ? ['web'] : ['auth'] )
]

Seems I need to make changes in watchtower.php

I'd really appreciate any help in this regard. Thanks in advanced!

@hammad786
Copy link
Author

hammad786 commented Oct 13, 2016

It worked now. I just changed middleware name to 'web' in routes.php explicitly to test and it worked.
Please mark this issue as closed now.

Thanks for looking into my issue. You're doing great JOB.

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

2 participants