Sentinel Social  package

Sentinel Social package

Written by Amine Dev on Jan 21st, 2019 Views Report Post

Introduction
Sentinel Social makes authenticating your users through social networks & third-party OAuth providers an absolute breeze.

The package follows the FIG standard PSR-4 to ensure a high level of interoperability between shared PHP code and is fully unit-tested.

The package requires PHP 5.4+.

INSTALLATION

The best and easiest way to install the Sentinel Social package is with Composer.

PREPARATION

Open your composer.json and add the following to the require array:


"cartalyst/sentinel-social": "2.0.*"
//Add the following lines after the require array on your composer.json file:

"repositories": [
    {
        "type": "composer",
        "url": "https://packages.cartalyst.com"
    }
],

INSTALL THE DEPENDENCIES

Run Composer to install or update the new requirement.

php composer install
or
php composer update

Now you are able to require the vendor/autoload.php file to autoload the package.

INTEGRATION

Laravel

The Sentinel Social package has optional support for Laravel 5 and it comes bundled with a

Service Provider and a Facade for easier integration.

After you have installed the package, just follow the instructions.

Open your Laravel config file config/app.php and add the following lines.

In the $providers array add the following service provider for this package.

'Cartalyst\Sentinel\Addons\Social\Laravel\SocialServiceProvider',

In the $aliases array add the following facade for this package.

'Social' => 'Cartalyst\Sentinel\Addons\Social\Laravel\Facades\Social',

Assets

Run the following commands to publish the migration and config files.

Sentinel

php artisan vendor:publish --provider="Cartalyst\Sentinel\Laravel\SentinelServiceProvider"

Sentinel Social

php artisan vendor:publish --provider="Cartalyst\Sentinel\Addons\Social\Laravel\SocialServiceProvider"

Migrations

Run the following command to migrate Sentinel after publishing the assets.

php artisan migrate

Configuration

After publishing, the sentinel social config file can be found under config/cartalyst.sentinel-addons.social.php where you can modify the package configuration.

NATIVE

After you have installed the package, just follow the instructions.

Setup your database

Sentinel schema

`vendor/cartalyst/sentinel/schema/mysql.sql`

Sentinel Social schema

`vendor/cartalyst/sentinel-social/schema/mysql.sql`

Configuration

Authorize


from Source

Comments (0)