Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
634 stars 200 forks source link

Setup authentication for the api. #128

Closed xavierbarbosa closed 8 years ago

xavierbarbosa commented 8 years ago

Currently we are using 'user' => User::first(), to pass the user to create cases in the CaseCreator\Http\Controllers\Api\CasesController. This is because we need to setup proper authentication for the api. So we can correctly retrieve the user.

heydavid713 commented 8 years ago

Are you talking about the native Laravel Authentication? Because if you are just change the file config/auth to use the eloquent driver and then change the model to your User model and it should work.

xavierbarbosa commented 8 years ago

Sorry, i was looking into issues and commented this here by mistake!