Installation

Zach :(){ :|: & } edited this page Jun 22, 2018 · 2 revisions

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

'Subfission\Cas\CasServiceProvider',

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.

Configuration

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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.