andyjessop/socialist

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

A social authentication REST API for Laravel 5

dev-master 2015-07-24 13:53 UTC

This package is not auto-updated.

Last update: 2021-06-12 00:09:20 UTC


README

A social authentication REST API for Laravel 5

WARNING: THIS IS STILL UNDER DEVELOPMENT AND SHOULD IN NO WAY BE USED FOR PRODUCTION

Installation

Add the package to your composer.json file:

"require": {
    ...
    "andyjessop/socialist": "dev-master"
},

Then update:

composer update

Add the service provider to 'YourRoot/config/app.php' providers array

'providers' => [

    ...
    AndyJessop\Socialist\SocialistServiceProvider::class,
],

Publish the config and migration files:

php artisan vendor:publish

Run the migration

php artisan migrate

Events

Socialist exposes some events for you to hook into in your application. To register listeners, follow the instructions in the Laravel Docs.

AndyJessop\Socialist\Events\UserHasLoggedIn
  • fires when a user logs in

  • exposes user data

    AndyJessop\Socialist\Events\UserHasRegistered

  • fires when a user is created

  • exposes user data