Skip to content

Commit 07bec5c

Browse files
committed
Merge branch 'master' into staging
2 parents 8afab34 + 1f005bd commit 07bec5c

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@ language: php
33
php:
44
- 5.3
55

6-
script: "php artisan test:core"
7-
8-
notifications:
9-
irc:
10-
- "irc.freenode.org#laravel"
6+
script: "php artisan test:core"

laravel/documentation/database/eloquent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ Let's assume you have a **Post** model that has many comments. Often you may wan
299299

300300
$post = Post::find(1);
301301

302-
$post->comments()->insert($comment);
302+
$comment = $post->comments()->insert($comment);
303303

304304
When inserting related models through their parent model, the foreign key will automatically be set. So, in this case, the "post_id" was automatically set to "1" on the newly inserted comment.
305305

@@ -323,7 +323,7 @@ This is even more helpful when working with many-to-many relationships. For exam
323323

324324
$user = User::find(1);
325325

326-
$user->roles()->insert($role);
326+
$role = $user->roles()->insert($role);
327327

328328
Now, when the Role is inserted, not only is the Role inserted into the "roles" table, but a record in the intermediate table is also inserted for you. It couldn't be easier!
329329

laravel/documentation/database/fluent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ You may discover the need to group portions of a WHERE clause within parentheses
124124
->or_where(function($query)
125125
{
126126
$query->where('age', '>', 25);
127-
$query->where('votes' '>', 100);
127+
$query->where('votes', '>', 100);
128128
})
129129
->get();
130130

laravel/documentation/routing.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ In the following example the first parameter is the route that you're "registeri
7878
//
7979
});
8080

81+
#### Catching the remaining URI without limitations:
82+
83+
Route::get('files/(:all)', function($path)
84+
{
85+
//
86+
});
87+
8188
#### Allowing a URI segment to be optional:
8289

8390
Route::get('page/(:any?)', function($page = 'index')

0 commit comments

Comments
 (0)