How to overridden laravel default login function

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to overridden laravel default login function



How can I override laravel default login function? Laravel Auth by default uses the users table and User model for login and authentication.
But I want to use API (which is in GCI and written in python) for login and authentication keeping everything else same as it is, such as checking if user is logged in from the blade like this @if(Auth::check) <<Do something>> @endifand so on.


users


User


API


GCI


@if(Auth::check) <<Do something>> @endif



Is it possible to do so? If so how can I do the same?



I have tried to google it out but I did not any other good article.
I also tried to look over stack overflow, I found some relevant post but those solutions don't fit my problem. Here are some:-



If this is not possible then how should I approach this problem?
Thank you for your any response.





Could you explain the python part a little bit better? How would you like to check if a user is logged in?
– HCK
Aug 8 at 14:55





Hi, i do not know what there in the python code. i have only the end point. Which accept email address and password and in response it send a json string that contain token,user info and status etc
– user7747472
Aug 8 at 16:18


email address


password


token,user info and status









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered