Download the PHP package graham-campbell/credentials without Composer
On this page you can find all versions of the php package graham-campbell/credentials. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download graham-campbell/credentials
More information about graham-campbell/credentials
Files in graham-campbell/credentials
Package credentials
Short Description Credentials Is A Cool Way To Authenticate In Laravel 5
License MIT
Informations about the package credentials
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, contribution guidelines.
Installation
PHP 5.5+ or HHVM 3.6+, and Composer are required.
To get the latest version of Laravel Credentials, simply add the following line to the require block of your composer.json
file:
You'll also need to make sure our fork of Sentry is included in your repositories list:
You'll then need to run composer install
or composer update
to download it and have the autoloader updated.
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.
'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.
'GrahamCampbell\Credentials\CredentialsServiceProvider'
You can register the three facades in the aliases
key of your config/app.php
file if you like.
'UserProvider' => 'GrahamCampbell\Credentials\Facades\UserProvider'
'GroupProvider' => 'GrahamCampbell\Credentials\Facades\GroupProvider'
'Credentials' => 'GrahamCampbell\Credentials\Facades\Credentials'
Configuration
Laravel Credentials supports optional configuration.
To get started, you'll need to publish all vendor assets:
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.
There are a few config options:
Enable Public Registration
This option ('regallowed'
) defines if public registration is allowed. The default value for this setting is true
.
Require Account Activation
This option ('activation'
) defines if public registration requires email activation. The default value for this setting is true
.
Revision Model
This option ('revision'
) defines the revision model to be used. The default value for this setting is 'GrahamCampbell\Credentials\Models\Revision'
.
Home
This option ('home'
) defines the location of the homepage. The default value for this setting is '/'
.
Layout
This option ('layout'
) defines the layout to extend when building views. The default value for this setting is 'layouts.default'
.
Email Layout
This option ('layout'
) defines the layout to extend when building email views. The default value for this setting is 'layouts.email'
.
Additional Configuration
You will need to add a 'name'
key to your app config to set the application name.
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:
'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.
License
Laravel Credentials is licensed under The MIT License (MIT).
All versions of credentials with dependencies
illuminate/console Version 5.0.*
illuminate/contracts Version 5.0.*
illuminate/database Version 5.0.*
illuminate/events Version 5.0.*
illuminate/http Version 5.0.*
illuminate/html Version 5.0.*
illuminate/mail Version 5.0.*
illuminate/pagination Version 5.0.*
illuminate/routing Version 5.0.*
illuminate/support Version 5.0.*
illuminate/validation Version 5.0.*
illuminate/view Version 5.0.*
cartalyst/sentry Version ~3.0
graham-campbell/core Version ~2.0
graham-campbell/binput Version ~3.0
graham-campbell/throttle Version ~3.0
sebastian/diff Version ~1.2
mccool/laravel-auto-presenter Version ~3.0
psr/log Version ~1.0