Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 2.35 KB

File metadata and controls

46 lines (28 loc) · 2.35 KB

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.