2017 © Pedro Peláez
 

library credentials

Credentials Is A Cool Way To Authenticate In Laravel 5

image

graham-campbell/credentials

Credentials Is A Cool Way To Authenticate In Laravel 5

  • Monday, May 30, 2016
  • by graham-campbell
  • Repository
  • 3 Watchers
  • 58 Stars
  • 18,672 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 20 Forks
  • 2 Open issues
  • 11 Versions
  • 1 % Grown

The README.md

Laravel Credentials

Laravel Credentials was created by, and is maintained by Graham Campbell, and is a cool way to authenticate in Laravel 5. It utilises many of my packages and Cartalyst's Sentry package. Feel free to check out the releases, license, and contribution guidelines., (*1)

Laravel Credentials, (*2)

Build Status Coverage Status Quality Score Software License Latest Version , (*3)

Installation

PHP 5.5+ or HHVM 3.6+, and Composer are required., (*4)

To get the latest version of Laravel Credentials, simply add the following line to the require block of your composer.json file:, (*5)

"graham-campbell/credentials": "~1.0"

You'll also need to make sure our fork of Sentry is included in your repositories list:, (*6)

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/BootstrapCMS/Sentry"
        }
    ],
}

You'll then need to run composer install or composer update to download it and have the autoloader updated., (*7)

You will need to register many service providers before you attempt to load the Laravel Credentials service provider. Open up config/app.php and add the following to the providers key., (*8)

  • 'McCool\LaravelAutoPresenter\LaravelAutoPresenterServiceProvider'
  • 'Cartalyst\Sentry\SentryServiceProvider'
  • 'GrahamCampbell\Security\SecurityServiceProvider'
  • 'GrahamCampbell\Binput\BinputServiceProvider'
  • 'GrahamCampbell\Throttle\ThrottleServiceProvider'

Once Laravel Credentials is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key., (*9)

  • 'GrahamCampbell\Credentials\CredentialsServiceProvider'

You can register the three facades in the aliases key of your config/app.php file if you like., (*10)

  • 'UserProvider' => 'GrahamCampbell\Credentials\Facades\UserProvider'
  • 'GroupProvider' => 'GrahamCampbell\Credentials\Facades\GroupProvider'
  • 'Credentials' => 'GrahamCampbell\Credentials\Facades\Credentials'

Configuration

Laravel Credentials supports optional configuration., (*11)

To get started, you'll need to publish all vendor assets:, (*12)

$ php artisan vendor:publish

This will create a config/credentials.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases., (*13)

There are a few config options:, (*14)

Enable Public Registration

This option ('regallowed') defines if public registration is allowed. The default value for this setting is true., (*15)

Require Account Activation

This option ('activation') defines if public registration requires email activation. The default value for this setting is true., (*16)

Revision Model

This option ('revision') defines the revision model to be used. The default value for this setting is 'GrahamCampbell\Credentials\Models\Revision'., (*17)

Home

This option ('home') defines the location of the homepage. The default value for this setting is '/'., (*18)

Layout

This option ('layout') defines the layout to extend when building views. The default value for this setting is 'layouts.default'., (*19)

Email Layout

This option ('layout') defines the layout to extend when building email views. The default value for this setting is 'layouts.email'., (*20)

Additional Configuration

You will need to add a 'name' key to your app config to set the application name., (*21)

You may want to check out the config for cartalyst/sentry too. For Laravel Credentials to function correctly, you must set the models to the following, or to a class which extends the following:, (*22)

  • 'GrahamCampbell\Credentials\Models\Group'
  • 'GrahamCampbell\Credentials\Models\User'
  • 'GrahamCampbell\Credentials\Models\Throttle'

Usage

There is currently no usage documentation for Laravel Credentials, but we are open to pull requests., (*23)

License

Laravel Credentials is licensed under The MIT License (MIT)., (*24)

The Versions

24/05 2014

v0.2.1-alpha

0.2.1.0-alpha

Credentials Is A Cool Way To Authenticate In Laravel 4.1

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Graham Campbell

laravel framework permissions login graham campbell grahamcampbell sentry credentials users laravel credentials laravel-credentials

21/04 2014

v0.2.0-alpha

0.2.0.0-alpha

Credentials Is A Cool Way To Authenticate In Laravel 4.1

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Graham Campbell

laravel framework permissions login graham campbell grahamcampbell sentry credentials users laravel credentials laravel-credentials

08/02 2014

v0.1.0-alpha

0.1.0.0-alpha

Credentials Is A Cool Way To Authenticate In Laravel 4.1

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Graham Campbell

laravel framework permissions login graham campbell grahamcampbell sentry credentials users laravel credentials laravel-credentials