angeloo/laravel-me

Downloads

5

Stars

0

Version

1.0.0

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Simple Laravel package to get an endpoint that return the current user data

Installation

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' => []
];

Usage

// in a routes files behind auth gate

Route::meApi('me');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

angeloo

Author

angeloo