Followed the instruction properly. Not able to hit the watchtower routes
Opened this issue · 3 comments
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: a@a.com
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
What do you get when you run php artisan route:list in your console?
On Tue, Oct 11, 2016 at 4:14 PM, hammad786 notifications@github.com 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: a@a.com
pass: 123456Would 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
.
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!
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.