Simple Laravel package to get an endpoint that return the current user data
You can install the package via composer:
composer require angeloo/laravel-me
You can publish and run the migrations with:
You can publish the config file with:
php artisan vendor:publish --provider="Angeloo\Me\MeServiceProvider" --tag="config"
This is the contents of the published config file:
return [ /* * The eloquent resource to use for the response. */ 'resource' => \Angeloo\Me\Http\Resources\MeResource::class, /* * The user's relationships you want to load. */ 'with' =>  ];
// in a routes files behind auth gate Route::meApi('me');
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.