laravel-oauth2
laravel-oauth2 copied to clipboard
Update README.md
Wrote an example that is an actual controller, using proper Laravel4 techniques.
Just expounded upon the previous example since I had to change it a fair bit for Laravel 4 standards
I just updated my first example to now include database implementation.
Please make sure you follow PSR-2.
That was just left over from the way I did it. On my platform you're redirected to a different place if you are registering vs. logging in. However there is no reason it can't be firstOrCreate.
As far as using the query builder, the way I did it was just personal preference. I don't really like multi-line functions, or really long lines. So that was purely just preference.
You could change both of those things, but it doesn't really change the flow that much.