Skip to content

Laravel 4.2, 5.0, 5.1 and 5.2 demo application with Authority-Controller package

Notifications You must be signed in to change notification settings

efficiently/laravel_authority-controller_app

Repository files navigation

Laravel 5.3 sample application with AuthorityController package

Build Status

For Laravel 5.2 supports, see the 2.2 branch of this demo.

For Laravel 5.1 supports, see the 2.1 branch of this demo.

For Laravel 5.0 supports, see the 2.0 branch of this demo.

For Laravel 4.2 supports, see the 1.0 branch of this demo.

The Laravel framework utilizes Composer for installation and dependency management. If you haven't already, start by installing Composer.

The easiest way to play with Authority-Controller, is to git clone this Laravel 5.3 demo application:

git clone https://github.com/efficiently/laravel_authority-controller_app && cd laravel_authority-controller_app/

Then inside the application's root, run these commands:

composer install
php artisan serve

In your Web browser, go to this URL: http://localhost:8000/users

You should see an AccessDenied exception.

With this error message: You are not authorized to access this page..

Go to: http://localhost:8000/login

Fill the login form with [email protected] and password then click on the Login button.

You should see: You are logged in!.

Then go back to: http://localhost:8000/users

You should see: Administrator.

Congratulations, You have the basics to use AuthorityController!

Now, You can read the doc to add more authorization rules.

You can also read how this demo was build HERE.

About

Laravel 4.2, 5.0, 5.1 and 5.2 demo application with Authority-Controller package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published