René's URL Explorer Experiment


Title: Admin Login redirecting back to Admin Login page. · Issue #45 · DevMarketer/multiauth_tutorial · GitHub

Open Graph Title: Admin Login redirecting back to Admin Login page. · Issue #45 · DevMarketer/multiauth_tutorial

X Title: Admin Login redirecting back to Admin Login page. · Issue #45 · DevMarketer/multiauth_tutorial

Description: I followed dev marketers tutorial to implement multiple authentication in my Laravel app. However, when i try to login as an admin it stays on the admin login page and does not go to the target page. Can someone assist on how i can gp ab...

Open Graph Description: I followed dev marketers tutorial to implement multiple authentication in my Laravel app. However, when i try to login as an admin it stays on the admin login page and does not go to the target pag...

X Description: I followed dev marketers tutorial to implement multiple authentication in my Laravel app. However, when i try to login as an admin it stays on the admin login page and does not go to the target pag...

Opengraph URL: https://github.com/DevMarketer/multiauth_tutorial/issues/45

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Admin Login redirecting back to Admin Login page. ","articleBody":"I followed dev marketers tutorial to implement multiple authentication in my Laravel app. However, when i try to login as an admin it stays on the admin login page and does not go to the target page. Can someone assist on how i can gp about this issue, \r\n\r\nThe following are the is my admin controller \r\n``\u003c?php\r\n\r\nnamespace App\\Http\\Controllers\\Auth;\r\n\r\nuse App\\Http\\Controllers\\Controller;\r\nuse Illuminate\\Http\\Request;\r\nuse Auth;\r\nuse Illuminate\\Foundation\\Auth\\AuthenticatesUsers;\r\n\r\nclass AdminLoginController extends Controller\r\n{\r\n\r\n  use AuthenticatesUsers;\r\n\r\n\r\n    public function __construct() {\r\n      $this-\u003emiddleware('guest:admin')-\u003eexcept('logout'); \r\n    }\r\n\r\n\r\n    public function showLoginForm() {\r\n      return view('auth.admin-login');\r\n    }\r\n\r\n    public function login(Request $request) {\r\n      // validate the form data here\r\n      $this-\u003evalidate($request, [\r\n        'email' =\u003e 'required|email',\r\n        'password' =\u003e 'required|min:8'\r\n      ]);\r\n\r\n      // Attempt to log the user in\r\n    if (Auth::guard('admin')-\u003eattempt(['email' =\u003e $request-\u003eemail, 'password' =\u003e $request-\u003epassword], $request-\u003eremember)) {\r\n      // if successful, then redirect to their intended location\r\n      return redirect()-\u003eintended(route('admin.dashboard'));\r\n    }\r\n\r\n       return redirect()-\u003eback()-\u003ewithInput($request-\u003eonly('email', 'remember'));\r\n\r\n    }\r\n}\r\n`` \r\n\r\nand this is my route that consists of the admin related views\r\n`` Route::prefix('admin')-\u003egroup(function() {\r\n\r\n  Route::get('/login', 'App\\Http\\Controllers\\Auth\\AdminLoginController@showLoginForm')-\u003ename('admin.login');\r\n\r\n  Route::post('/login', 'App\\Http\\Controllers\\Auth\\AdminLoginController@login')-\u003ename('admin.login.submit');\r\n\r\n  Route::get('/', 'App\\Http\\Controllers\\AdminController@index')-\u003ename('admin.dashboard');;\r\n\r\n  Route::get('/{id}/',[CarsController::class, 'getCar'] )-\u003ewhere('id', '[0-9]+')-\u003emiddleware('auth:admin');;\r\n\r\n  Route::get('/cars',[CarsController::class, 'getCars'])-\u003emiddleware('auth:admin')-\u003ename('admin.cars');;;\r\n\r\n  Route::get('/create-car/',[CarsController::class, 'createCar'] )-\u003emiddleware('auth:admin')-\u003ename('admin.cars');;;\r\n\r\n  Route::post('/store-car/',[CarsController::class, 'storeCar'])-\u003emiddleware('auth:admin');;;\r\n\r\n  Route::get('/{id}/edit',[CarsController::class, 'editCar'])-\u003ewhere('id', '[0-9]+')-\u003emiddleware('auth:admin');;;\r\n\r\n  Route::post('/cars/edit-car/{id}',[CarsController::class, 'storeEditedCar'])-\u003ewhere('id', '[0-9]+')-\u003emiddleware('auth:admin');;;\r\n\r\n\r\n});``\r\n","author":{"url":"https://github.com/HoodLegend","@type":"Person","name":"HoodLegend"},"datePublished":"2021-08-13T14:55:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/45/multiauth_tutorial/issues/45"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:099d69c2-345c-c163-9fc1-8d82bdca9dff
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD8AC:29A644:61EC4E0:80C11A9:6A5DC4B6
html-safe-nonce4f7b784f4b3a365861714203eecb37e4a9260b652c113caff6cda0fe669b2ecd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEFDOjI5QTY0NDo2MUVDNEUwOjgwQzExQTk6NkE1REM0QjYiLCJ2aXNpdG9yX2lkIjoiODcxODMwMjI0NTYxNDg5NjMxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac558c577461bbf4a173155bf567e1c116aadb87658b04ca87b182f8d1085bbf56
hovercard-subject-tagissue:970474236
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DevMarketer/multiauth_tutorial/45/issue_layout
twitter:imagehttps://opengraph.githubassets.com/55fe2238d77a42f0a24b541b7591febe0afd56a5d56f7cd36c8dd60d8569ef33/DevMarketer/multiauth_tutorial/issues/45
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/55fe2238d77a42f0a24b541b7591febe0afd56a5d56f7cd36c8dd60d8569ef33/DevMarketer/multiauth_tutorial/issues/45
og:image:altI followed dev marketers tutorial to implement multiple authentication in my Laravel app. However, when i try to login as an admin it stays on the admin login page and does not go to the target pag...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHoodLegend
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/DevMarketer/multiauth_tutorial git https://github.com/DevMarketer/multiauth_tutorial.git
octolytics-dimension-user_id20360951
octolytics-dimension-user_loginDevMarketer
octolytics-dimension-repository_id83099431
octolytics-dimension-repository_nwoDevMarketer/multiauth_tutorial
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id83099431
octolytics-dimension-repository_network_root_nwoDevMarketer/multiauth_tutorial
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/DevMarketer/multiauth_tutorial/issues/45#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDevMarketer%2Fmultiauth_tutorial%2Fissues%2F45
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDevMarketer%2Fmultiauth_tutorial%2Fissues%2F45
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=DevMarketer%2Fmultiauth_tutorial
Reloadhttps://github.com/DevMarketer/multiauth_tutorial/issues/45
Reloadhttps://github.com/DevMarketer/multiauth_tutorial/issues/45
Reloadhttps://github.com/DevMarketer/multiauth_tutorial/issues/45
Please reload this pagehttps://github.com/DevMarketer/multiauth_tutorial/issues/45
DevMarketer https://github.com/DevMarketer
multiauth_tutorialhttps://github.com/DevMarketer/multiauth_tutorial
Notifications https://github.com/login?return_to=%2FDevMarketer%2Fmultiauth_tutorial
Fork 83 https://github.com/login?return_to=%2FDevMarketer%2Fmultiauth_tutorial
Star 152 https://github.com/login?return_to=%2FDevMarketer%2Fmultiauth_tutorial
Code https://github.com/DevMarketer/multiauth_tutorial
Issues 13 https://github.com/DevMarketer/multiauth_tutorial/issues
Pull requests 16 https://github.com/DevMarketer/multiauth_tutorial/pulls
Actions https://github.com/DevMarketer/multiauth_tutorial/actions
Projects https://github.com/DevMarketer/multiauth_tutorial/projects
Security and quality 0 https://github.com/DevMarketer/multiauth_tutorial/security
Insights https://github.com/DevMarketer/multiauth_tutorial/pulse
Code https://github.com/DevMarketer/multiauth_tutorial
Issues https://github.com/DevMarketer/multiauth_tutorial/issues
Pull requests https://github.com/DevMarketer/multiauth_tutorial/pulls
Actions https://github.com/DevMarketer/multiauth_tutorial/actions
Projects https://github.com/DevMarketer/multiauth_tutorial/projects
Security and quality https://github.com/DevMarketer/multiauth_tutorial/security
Insights https://github.com/DevMarketer/multiauth_tutorial/pulse
Admin Login redirecting back to Admin Login page. https://github.com/DevMarketer/multiauth_tutorial/issues/45#top
https://github.com/HoodLegend
HoodLegendhttps://github.com/HoodLegend
on Aug 13, 2021https://github.com/DevMarketer/multiauth_tutorial/issues/45#issue-970474236
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.