Commit c31df737 authored by Taylor Otwell's avatar Taylor Otwell

put change log in docs.

parent 7d30d179
## Laravel Change Log
# Laravel Change Log
## Contents
......@@ -20,9 +20,9 @@
- Fixed the passing of strings into the Input::except method.
- Fixed replacement of optional parameters in URL::transpose method.
- Added "to_array" method to the base Eloquent model.
- Added "$hidden" static variable to the base Eloquent model.
- Added "sync" method to has_many_and_belongs_to Eloquent relationship.
- [Added `to_array` method to the base Eloquent model](/docs/database/eloquent#to-array).
- [Added `$hidden` static variable to the base Eloquent model](/docs/database/eloquent#to-array).
- [Added `sync` method to has\_many\_and\_belongs\_to Eloquent relationship](/docs/database/eloquent#sync-method).
- Improved View performance by only loading contents from file once.
- Fix handling of URLs beginning with has in URL::to.
......
### General
- [Laravel Overview](/docs/home)
- [Change Log](/docs/changes)
- [Installation & Setup](/docs/install)
- [Requirements](/docs/install#requirements)
- [Installation](/docs/install#installation)
......
......@@ -304,6 +304,7 @@ However, you may often only want to insert a new record into the intermediate ta
$user->roles()->attach($role_id);
<a name="sync-method"></a>
Alternatively, you can use the `sync` method, which accepts an array of IDs to "sync" with the intermediate table. After this operation is complete, only the IDs in the array will be on the intermediate table.
$user->roles()->sync(array(1, 2, 3));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment