2017 © Pedro Peláez
 

library mindbody-laravel-auth

MINDBODY Auth Wrapper for Laravel

image

nlocascio/mindbody-laravel-auth

MINDBODY Auth Wrapper for Laravel

  • Friday, October 27, 2017
  • by nlocascio
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

Laravel MINDBODY Auth

This package is a Laravel User Provider which authenticates user logins through MINDBODY. It exposes two auth drivers: one for authenticating Client credentials, and one for authenticating Staff credentials., (*1)

Requirements

This package requires: - PHP 7.0+ - Laravel 5.1+ - Nlocascio/Mindbody-Laravel 0.2.0+, (*2)

Installation

Install the package through Composer:, (*3)

composer require nlocascio/mindbody-laravel-auth

This package requires nlocascio/mindbody-laravel to communicate with the MINDBODY API. You must configure that package first before proceeding., (*4)

Laravel

Register the Service Provider

In config/app.php, append to the providers key before App\Providers\AuthServiceProvider::class is declared:, (*5)

Nlocascio\MindbodyAuth\MindbodyAuthServiceProvider::class

Configure the User Provider

In your app's config/auth.php, add the following to the providers key:, (*6)

For authenticating Clients with MINDBODY:
'mindbody_clients' => [
    'driver' => 'mindbody_client',
    'model' => App\User::class
],
For authenticating Staff with MINDBODY:
'mindbody_staff' => [
    'driver' => 'mindbody_staff',
    'model' => App\User::class
]

Note that your model can point to any Eloquent model which implements Illuminate\Contracts\Auth\Authenticatable. Depending on the needs of your application, you may prefer to have different models for different types of users; however, using the default App/User.php will work for many cases., (*7)

Configure the Authentication Guards

In your app's config/auth.php, add the following to the guards key:, (*8)

For MINDBODY Client credentials:
'mindbody_client' => [
    'driver' => 'session',
    'provider' => 'mindbody_client'
],
or for MINDBODY Staff credentials:
'mindbody_staff' => [
    'driver' => 'session',
    'provider' => 'mindbody_staff'
]

Use the Guards in your Middleware

Now that you've registered and configured the guards, you may use them in your application by using the auth:mindbody_client or auth:mindbody_staff middleware., (*9)

You can set one of these guards to be the default authentication guard in config/auth.php under the defaults key:, (*10)

'defaults' => [
    'guard'     => 'mindbody_client',      // or 'mindbody_staff'
    'passwords' => 'users',
],

The Versions

27/10 2017

dev-develop

dev-develop

MINDBODY Auth Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody laravel mindbody auth provider

05/09 2017

dev-master

9999999-dev

MINDBODY Auth Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody laravel mindbody auth provider

13/04 2017

v0.4.0

0.4.0.0

MINDBODY Auth Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody laravel mindbody auth provider

29/03 2017

v0.3.3

0.3.3.0

MINDBODY Auth Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

by Nick LoCascio

03/03 2017

v0.3.2

0.3.2.0

MINDBODY Auth Wrapper for Laravel

  Sources   Download

The Requires

 

by Nick LoCascio

03/03 2017

v0.3.0

0.3.0.0

MINDBODY Auth Wrapper for Laravel

  Sources   Download

The Requires

 

by Nick LoCascio

03/03 2017

v0.3.1

0.3.1.0

MINDBODY Auth Wrapper for Laravel

  Sources   Download

The Requires

 

by Nick LoCascio

23/11 2016

v0.2.0

0.2.0.0

MINDBODY Auth Wrapper for Laravel

  Sources   Download

The Requires

 

by Nick LoCascio

20/11 2016

v0.1.2

0.1.2.0

MINDBODY Auth Wrapper for Laravel

  Sources   Download

The Requires

 

by Nick LoCascio

19/11 2016

v0.1.1

0.1.1.0

MINDBODY Auth Wrapper for Laravel

  Sources   Download

The Requires

 

by Nick LoCascio

19/11 2016

v0.1.0

0.1.0.0

MINDBODY Auth Wrapper for Laravel

  Sources   Download

The Requires

 

by Nick LoCascio