mardi 20 octobre 2015

Use Laravel Auth with custom view

I am trying to implement a one-page application. I want it to resemble the design in the attached image, where the right box will host a login/register fragment if the user is not signed in but will update to a profile/logout once authenticated.

Demo

How can I leverage the existing Laravel authentication feature to get this to work? Something like sending an Ajax request to the AuthController and then return Auth::user() in case of login or sending form data to the auth/register route.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire