Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Installation of this package is through the same standard of all composer packages. You have a choice of either locking onto a version number or using the master version.
If you would like to learn more about the standards I use for version labeling, please review the Standards page in the wiki.
Example Install Using Master Branch
Require this package using composer from command line in your Laravel 5 directory:
$ composer require "subfission/cas":"dev-master"
**After updating composer, add the ServiceProvider to the providers array in app/config/app.php
Add the middelware to your Kernel.php file or leverage your own:
'cas.auth' => 'Subfission\Cas\Middleware\CASAuth', 'cas.guest' => 'Subfission\Cas\Middleware\RedirectCASAuthenticated',
NOTE: I provided this sample middleware for your usage. If you need a more custom solution, create your middleware and modify these paths accordingly.
**As well as the Facade to your app.php config file:
'Cas' => 'Subfission\Cas\Facades\Cas',
Now publish the configuration file:
$ php artisan vendor:publish
**NOTE: this step can be omitted after version 5.4.
Edit the cas.php configuration file after you publish it, with your server's settings.
Read the comments in the config file for further help.