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 41<br />

Another important thing to note is the use of $guarded. Laravel 4 provides mass assignment<br />

protection. What we’re doing by specifying this list of fields; is telling Eloquent which fields should<br />

not be settable when providing an array of data in the creation of a new Group instance.<br />

.<br />

You can find out more about this mass assignment protection at: http://laravel.com/docs/eloquent#massassignment<br />

Adding Groups<br />

We’re going to be abstracting much of the validation out of the controllers and into new form classes.<br />

1

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

Saved successfully!

Ooh no, something went wrong!