jquery - Laravel 5.1 ajax based login/registration using Auth controller? -


i learning laravel framework. have question while learning authenticatation.

i have tried login , registrartion refering laravel authentication.

now want make login , registartion using ajax.
question need write new controller , method login , registration because need return data in json format display validation message or redirect after login.
or
there way can use same authentication controller , method work ajax.
please suggest appropriate solution ?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -