Redirect to a page after logging out in Laravel
In Laravel normally the logout function enables the user to logout from the session and remain on the login page or index page. The default function for logout in Laravel is given below.
public function logout(Request $request) { $this->guard()->logout(); $request->session()->flush(); $request->session()->regenerate(); return redirect('/'); }
To redirect to a particular page on logout make the following change in the Auth\LoginController:
use AuthenticatesUsers { logout as performLogout; }
Then in the return redirect add your route in the LoginController’s logout() method.
public function logout(Request $request) { $this->performLogout($request); return redirect()->route('your_route'); }
For Laravel 5.7 and above you can simply override the logout method.
//App\Http\Controllers\Auth\LoginController.php protected function loggedOut(Request $request) { return redirect('/where/ever/you/want/to/go');
Digital_Work
07 Sep 2022
Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking. Official website
Murphy
26 Oct 2022
Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading. gold ira companies
robertfc rocker
26 Oct 2022
Great post, and great website. Thanks for the information! Lake George strippers
robertfc rocker
26 Oct 2022
Thank you so much Love your blog.. strippers near me
robertfc rocker
26 Oct 2022
This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information... bikini strippers
robertfc rocker
26 Oct 2022
Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging, Miami exotic dancers
robertfc rocker
26 Oct 2022
Absolutely fantastic posting! Lots of useful information and inspiration, both of which we all need!Relay appreciate your work. miami strippers
robertfc rocker
26 Oct 2022
Thank you for taking the time to publish this information very useful! Women clothing Tailoring and Alterations
robertfc rocker
26 Oct 2022
I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You. I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,.. This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post.
robertfc rocker
26 Oct 2022
thank you for your interesting infomation. montreal painting
robertfc rocker
26 Oct 2022
This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post.! exterior painters Pasadena
robertfc rocker
26 Oct 2022
very interesting post.this is my first time visit here.i found so mmany interesting stuff in your blog especially its discussion..thanks for the post! Katelyn Berry
robertfc rocker
26 Oct 2022
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. Katelyn berry Montana
robertfc rocker
26 Oct 2022
Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards, Pottery Classes
robertfc rocker
26 Oct 2022
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value. Im glad to have found this post as its such an interesting one! I am always on the lookout for quality posts and articles so i suppose im lucky to have found this! I hope you will be adding more in the future... evan rubinson tampa
jahanghir khatri
17 Dec 2022
Only aspire to mention ones content can be as incredible. This clarity with your post is superb and that i may think you’re a guru for this issue. High-quality along with your concur permit me to to seize your current give to keep modified by using approaching blog post. Thanks a lot hundreds of along with you should go on the pleasurable get the job done. Link Alternatif Layar138
aa
30 Dec 2022
Wow, this is fascinating reading. I am glad I found this and got to read it. Great job on this content. I liked it a lot. Thanks for the great and unique info. Koinslot168
aa
02 Jan 2023
Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. sceneca residence showflat
AREE
03 Jan 2023
One Pearl Bank by CapitaLand. Hotline 61004343. Get Discounts, Direct Developer Price, Floor Plan, Price List, Brochure & More. one pearl bank showflat
jahanghir khatri
05 Jan 2023
You have outdone yourself this time. It is probably the best, most short step by step guide that I have ever seen. hyll on holland
aa
11 Jan 2023
I like your post. It is good to see you verbalize from the heart and clarity on this important subject can be easily observed... cairnhill 16
aa
15 Jan 2023
When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. koinslot168
aa
17 Jan 2023
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. slot gacor
jahanghir khatri
21 Jan 2023
I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. gacorslot
write for us marketing
24 Jan 2023
To write for us marketing, go here. We routinely offer insightful advice to help current and prospective owners of digital marketing organizations build enduring, expanding enterprises.
seo tips for small business
24 Jan 2023
A crucial component of marketing, SEO raises a website's visibility for pertinent queries. Go to "seo tips for small business" to learn more about SEO.
aa
24 Jan 2023
It proved to be Very helpful to me and I am sure to all the commentators here! contoh press release
aa
28 Jan 2023
I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... slot gacor
jahanghir khatri
07 Feb 2023
Thanks for picking out the time to discuss this, I feel great about it and love studying more on this topic. It is extremely helpful for me. Thanks for such a valuable help again. how to sell credit card processing
jahanghir khatri
10 Feb 2023
Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. iso agent program
aa
13 Feb 2023
Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. sell credit card processing
jahanghir khatri
23 Feb 2023
This article is an appealing wealth of useful informative that is interesting and well-written. I commend your hard work on this and thank you for this information. I know it very well that if anyone visits your blog, then he/she will surely revisit it again. sell payment processing
jahanghir khatri
27 Feb 2023
This is my first visit to your web journal! We are a group of volunteers and new activities in the same specialty. Website gave us helpful data to work. become a digital payment agent
robertfc rocker
02 Mar 2023
I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. goldco
hodoto 9453
02 Mar 2023
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. rds
Murphy
02 Mar 2023
Admiring the time and effort you put into your blog and detailed information you offer!.. freight forwarders uk
robertfc rocker
02 Mar 2023
thank you for your interesting infomation. ppc agency surrey
robertfc rocker
02 Mar 2023
This was really an interesting topic and I kinda agree with what you have mentioned here! commercial insurance
robertfc rocker
02 Mar 2023
I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.. PacificWest Asset Management
robertfc rocker
02 Mar 2023
I read a article under the same title some time ago, but this articles quality is much, much better. How you do this.. dental claim support
robertfc rocker
02 Mar 2023
The post is written in very a good manner and it contains many useful information for me. wealth management services
robertfc rocker
02 Mar 2023
Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. cyber security protection
robertfc rocker
02 Mar 2023
Thanks for the valuable information and insights you have so provided here... payday lenders
robertfc rocker
02 Mar 2023
I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. earned MBA from Chicago Booth
robertfc rocker
02 Mar 2023
Only aspire to mention ones content can be as incredible. This clarity with your post is superb and that i may think you’re a guru for this issue. High-quality along with your concur permit me to to seize your current give to keep modified by using approaching blog post. Thanks a lot hundreds of along with you should go on the pleasurable get the job done. Basement Finishing
robertfc rocker
02 Mar 2023
This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. chartered plane
robertfc rocker
02 Mar 2023
Some truly wonderful work on behalf of the owner of this internet site , perfectly great articles . sensitive stomach dog food
robertfc rocker
02 Mar 2023
Cool stuff you have got and you keep update all of us. mono protein dog food
robertfc rocker
02 Mar 2023
This is a brilliant blog! I'm very happy with the comments!.. healthy puppy food
robertfc rocker
02 Mar 2023
Thanks for sharing this quality information with us. I really enjoyed reading. Will surely going to share this URL with my friends. Garage door seals
robertfc rocker
02 Mar 2023
it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity.. Holmes beach golf cart rentals
robertfc rocker
02 Mar 2023
I really thank you for the valuable info on this great subject and look forward to more great posts. Thanks a lot for enjoying this beauty article with me. I am appreciating it very much! Looking forward to another great article. Good luck to the author! All the best! bodenspachtel 0-20 mm
robertfc rocker
02 Mar 2023
Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting. freedom
parer 45632
02 Mar 2023
Hi there! Nice post! Please tell us when I will see a follow up! carpentry
robertfc rocker
02 Mar 2023
I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. pattaya dental hospital
robertfc rocker
02 Mar 2023
That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally! garage doors repair Washington terrace UT
jahanghir khatri
04 Mar 2023
Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! payment processing sales
parer 45632
07 Mar 2023
Thanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. Do you mind updating your blog post with additional insight? It should be really useful for all of us. Elf bar ultra
jahanghir khatri
07 Mar 2023
Whenever I have some free time, I visit blogs to get some useful info. Today, I found your blog with the help of Google. Believe me; I found it one of the most informative blog. best merchant services companies
live100plus
08 Mar 2023
Thank you so much for ding the impressive job here, everyone will surely like your post. the atelier condo
live100plus
19 Mar 2023
Hey, this day is too much good for me, since this time I am reading this enormous informative article here at my home. Thanks a lot for massive hard work. cairnhill 16 condo
aa
23 Mar 2023
Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. koinslot
aa
24 Mar 2023
Succeed! It could be one of the most useful blogs we have ever come across on the subject. Excellent info! I’m also an expert in this topic so I can understand your effort very well. Thanks for the huge help. akun pro lasvegas
Allan Matos
18 Apr 2023
The Nigeria B2B Marketplace is your one-stop shop for doing business with other businesses in Nigeria. Our online marketplace serves as a thriving hub for bringing together and working with other buyers and sellers from other industries in order to conduct business successfully.
Thomas kay
18 Apr 2023
You have arrived at your one-stop shop for business-to-business commerce in the US, the United States B2B Marketplace. Our online marketplace acts as a vibrant center for connecting, collaborating, and doing business smoothly and successfully between buyers and sellers from diverse industries.
Jack
20 Apr 2023
I'm grateful that you shared all of this amazing information, and I respect your effort and expertise.Visit Us : Marketing Tips & Tricks
aa
26 Apr 2023
It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post. flat fee credit card processing
aa
06 May 2023
Only strive to mention one's content can be as incredible. This clarity with your post is superb! Thanks a lot, hundreds of along with you should go on the pleasurable get the job done. baywind residences showflat
aa
09 May 2023
A very excellent blog post. I am thankful for your blog post. I have found a lot of approaches after visiting your post. selling merchant services
jahanghir khatri
23 May 2023
Thanks for picking out the time to discuss this, I feel great about it and love studying more on this topic. It is extremely helpful for me. Thanks for such a valuable help again. slot luar negeri thailand
aa
28 May 2023
Thanks for picking out the time to discuss this, I feel great about it and love studying more on this topic. It is extremely helpful for me. Thanks for such a valuable help again. koinslot168
aa
03 Jun 2023
A very excellent blog post. I am thankful for your blog post. I have found a lot of approaches after visiting your post. my review here
aa
05 Jun 2023
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. folk store
live100plus
06 Jun 2023
Je tiens à dire que ce blog m'a vraiment convaincu de le faire! Merci, très bon article. chasseur immobilier tours
are
11 Jun 2023
Great things you’ve always shared with us. Just keep writing this kind of posts.The time which was wasted in traveling for tuition now it can be used for studies.Thanks barong123
aa
12 Jun 2023
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Canggu cocktail Bar
aree
12 Jun 2023
Je ne suis pas un expert, mais je crois que vous venez de faire un excellent point. Vous comprenez certainement parfaitement de quoi vous parlez, et je peux vraiment vous soutenir. estimation immobilier
Facboook
20 Nov 2023
Certainly with your thoughts here and that i love your blog! I’ve bookmarked it making sure that I can come back & read more in the foreseeable future. Facboook
Seth
23 Nov 2023
Thanks for this post, I am a big big fan of this site would like to keep updated. mk-677 for sale
1 chat avenue
14 Dec 2023
Hi there! I simply would like to give an enormous thumbs up for the great information you might have here on this post. I might be coming back to your weblog for more soon. 1 chat avenue
social media app banality of life
20 Mar 2024
This site is captivating; despite reading through, I'm left with some unresolved questions. Reach out via email, and let's delve deeper—I may have an interesting idea to discuss. social media app banality of life
banved
25 Mar 2024
Experience automotive sophistication like never before with our meticulously engineered Luxury Seat Covers, crafted to surpass expectations in both form and function. With innovative features and premium craftsmanship, these seat covers redefine the driving experience with their unparalleled comfort and style. 2009 BMW 330i Sedan Seat Covers Seat Covers 2021 Lexus RX Seat Covers Seat Covers
berlon
24 Apr 2024
For anybody who is considering about external complications, sometimes be tough amaze those to realize to produce just a single weed in this very flowing usually requires eleven liters concerning gasoline to. dc free mommy blog giveaways family trip home gardening house power wash baby laundry detergent Mini Daschund Puppies for Sale
berlon
28 Apr 2024
Very good suggestions, I just added this to my RSS feed. What would you suggest in regards to your post that you made a few days ago? Prop Money for Sale
james
01 May 2024
It’s best to participate in a contest for among the best blogs on the web. I’ll advocate this website! Ragdoll Kitten Sale
berlon
04 May 2024
The the next occasion I read a weblog, Lets hope so it doesnt disappoint me about this place. After all, I know it was my choice to read, but I actually thought youd have something interesting to express. All I hear can be a few whining about something you could fix in the event you werent too busy looking for attention. Krt cart
berlon
05 May 2024
Some genuinely interesting info , well written and loosely user pleasant. login
berlon
15 May 2024
When I originally commented I clicked the -Notify me when new surveys are added- checkbox now when a comment is added I purchase four emails using the same comment. Can there be that is it is possible to eliminate me from that service? Thanks! New Jersey car service
berlon
18 May 2024
For example, develop suppliers have worked with the Meals & Drug Administration (FDA) to make sure that the marketplace specifications developed consequence in the ideal and most effective processes. And to communicate any public announcements, the marketplace has created relationships with associations like the National Grocer’s Association (NGA). appliance repair lexington ky
berlon
22 May 2024
You made some decent points there. I looked on-line to the problem and found most individuals goes in conjunction with with all your internet site. Instalación Césped Artificial Málaga
berlon`
25 May 2024
It’s difficult to find knowledgeable individuals within this topic, and you sound like do you know what you are talking about! Thanks Deadhead Chemist
berlon
26 May 2024
An fascinating discussion will most likely be worth comment. I do think you ought to write regarding this subject, it may often be a taboo topic but gutters
berlon
28 May 2024
I am not really superb with English but I line up this very easy to understand . link slot
berlon
29 May 2024
Excellent and really nice blog. I really like blogs that have to do with building muscle, so this is of particular interest to me to see what you have here. Keep it going! force factor spaceman pragmatic
berlon
06 Jun 2024
when i was a kid, i love to receive an assortment of birthday presents like teddy bears and mechanical toys.. Indian marriage site
berlon
06 Jun 2024
nice site. I will be a regular visitor for a long time. 50th Birthday T-shirts
berlon
29 Jun 2024
I’ve held it’s place in related scenarios just before. The no effortless a remedy when you considered maybe it’s, it really is a thing that you’ll must create yourself above above time. gold buying NYC
bosswd
01 Jul 2024
Typewriter… […]It needs to become ironed with low setting right up until the graphic is entirely transferred towards the ribbon[…]… bosswd
bosswd
04 Jul 2024
Politics is of course very annoying, politicians do annoy me because of their bad performance” Talaria
berlon
06 Jul 2024
depending on fossil fuel is always a bad idea, we should always concentrate on renewable energy; Dmt vape
aw8
12 Jul 2024
I’m impressed, I have to admit. Really rarely do I encounter a blog that’s both educative and entertaining, and let me tell you, you’ve hit the nail around the head. Your idea is outstanding, the issue is something which not enough folks are speaking intelligently about. I am very happy that I found this within my search for something relating to this. aw8
berlon
15 Aug 2024
Construction project management software is designed to help teams plan and execute construction projects smoothly. It streamlines tasks like scheduling, budgeting, and communication, ensuring that every aspect of the project is under control and progressing as planned. TaskTag