What I want to do is that,whenever a user request for login, a json response will provide,not the last url they request.
Example: At first say user request for logged in with url
http://localhost/carbguardadvert/public/index.php/auth/login
and I returned user details as json response.
Now consider user logout,then request for this page:
so I am returning json
status: true
isLogin: false
msg: "Your session expired,login first"
requestError: [0]
Now he/she will try to login with the login url, then after successful login, they are redirecting automaticaly to
http://localhost/example/public/index.php/business/all
but I don't want that, I want to return user details whenever user request for login..
consider that, I am new in laravel
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NMB4Sr
via IFTTT
Aucun commentaire:
Enregistrer un commentaire