03.12.2015 Views

laravel4cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Access Control List<br />

Previously we looked at how to set up a basic authentication system. In this chapter; we’re going to<br />

continue to improve the authentication system by adding what’s called ACL (Access Control List)<br />

to the authentication layer.<br />

.<br />

The code for this chapter can be found at: https://github.com/formativ/tutorial-laravel-4-acl<br />

Managing Groups<br />

We’re going to be creating an interface for adding, modifying and deleting user groups. Groups will<br />

be the containers to which we add various users and resources. We’ll do that by create a migration<br />

and a model for groups, but we’re also going to optimise the way we create migrations.<br />

Refactoring Migrations<br />

We’ve got a few more migrations to create in this tutorial; so it’s a good time for us to refactor our<br />

approach to creating them…<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!