Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matt Stauffer:
ACL (Access Control List) Authorization in Laravel 5.1
Sep 10, 2015 @ 09:41:45

Matt Stauffer has continued his series looking at Laravel 5.1 with a new post covering the ACL functionality recently added in 5.1.1. This functionality adds on to the pre-existing authentication handling that has been a part of the framework for a while.

The authentication that Laravel provides out-of-the-box makes it simple to get user signup, login, logout, and password resets up and running quickly and easily.

But if you needed to control access to certain sections of the site, or turn on or off particular pieces of a page for non-admins, or ensure someone can only edit their own contacts, you needed to bring in a tool like BeatSwitch Lock or hand-roll the functionality, which would be something called ACL: Access Control Lists, or basically the ability to define someone's ability to do and see certain things based on attributes of their user record. Thankfully, Taylor and Adam Wathan wrote an ACL layer in Laravel 5.1.11 that provides this functionality without any added work.

He talks about the main interface to the ACL system, the Gate class/facade, and gives a simple example of it in use. He then gets into how it works in defining abilities and checking access levels with both the facade and on the model level. He also shows how to use the checks in Blade templates and how to intercept the evaluations for custom evaluation. He ends the post talking about the concept of policies and controller authorization to allow for additional checking.

tagged: acl accesscontrol authorization laravel5 tutorial series part12 gate

Link: https://mattstauffer.co/blog/acl-access-control-list-authorization-in-laravel-5-1

The Bakery:
Six New Articles and Tutorials
Jul 17, 2007 @ 12:09:00

The Bakery has six new articles/tutorials posted today on subjects ranging from working with LDAP out to Access Control:

Check out The Bakery for more great articles and tutorials (as well as case studies on sites using the CakePHP framework).

tagged: cakephp framework article tutorial acl krumo ldap accesscontrol cakephp framework article tutorial acl krumo ldap accesscontrol

Link:

The Bakery:
Six New Articles and Tutorials
Jul 17, 2007 @ 12:09:00

The Bakery has six new articles/tutorials posted today on subjects ranging from working with LDAP out to Access Control:

Check out The Bakery for more great articles and tutorials (as well as case studies on sites using the CakePHP framework).

tagged: cakephp framework article tutorial acl krumo ldap accesscontrol cakephp framework article tutorial acl krumo ldap accesscontrol

Link:

Nick Halstead's Blog:
Zend Framework RC1 and Zend ACL usage
May 31, 2007 @ 07:52:00

Nick Halstead takes a look at another aspect of the Zend Framework in his latest blog post - the ACL component in the most recent release, Zend Framework RC1.

Yesterday RC1 of Zend Framework was released. I have been working away using it for several months and I have tried to give back small snippets of code as I went along. I had to do some work on my class that extends the Zend ACL and it reminded me how I like to approach coding as a whole.

He goes on to look at what the Zend Framework access control functionality is and how he plans on using it. He follows this with a few code snippets that, among other things, show how the Zend_Config_Ini component could be used to maintain the access list.

tagged: accesscontrol zendacl zendframework zendconfigini accesscontrol zendacl zendframework zendconfigini

Link:

Nick Halstead's Blog:
Zend Framework RC1 and Zend ACL usage
May 31, 2007 @ 07:52:00

Nick Halstead takes a look at another aspect of the Zend Framework in his latest blog post - the ACL component in the most recent release, Zend Framework RC1.

Yesterday RC1 of Zend Framework was released. I have been working away using it for several months and I have tried to give back small snippets of code as I went along. I had to do some work on my class that extends the Zend ACL and it reminded me how I like to approach coding as a whole.

He goes on to look at what the Zend Framework access control functionality is and how he plans on using it. He follows this with a few code snippets that, among other things, show how the Zend_Config_Ini component could be used to maintain the access list.

tagged: accesscontrol zendacl zendframework zendconfigini accesscontrol zendacl zendframework zendconfigini

Link: