From be7544b67af20f2bf27c4f6913212e1556958835 Mon Sep 17 00:00:00 2001 From: daris Date: Sun, 19 Aug 2012 19:05:45 +0300 Subject: [PATCH 1/4] Update laravel/documentation/database/fluent.md Missing comma --- laravel/documentation/database/fluent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/documentation/database/fluent.md b/laravel/documentation/database/fluent.md index 1f726540..ceeb809b 100644 --- a/laravel/documentation/database/fluent.md +++ b/laravel/documentation/database/fluent.md @@ -124,7 +124,7 @@ ## Nested Where Clauses ->or_where(function($query) { $query->where('age', '>', 25); - $query->where('votes' '>', 100); + $query->where('votes', '>', 100); }) ->get(); From 20c696d4ae3da4624bf10f0f6d40bf4eeae46401 Mon Sep 17 00:00:00 2001 From: Christoph Menke Date: Tue, 21 Aug 2012 17:08:21 +0200 Subject: [PATCH 2/4] Added Routing Wildcard '(:all)' to Documentation --- laravel/documentation/routing.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/laravel/documentation/routing.md b/laravel/documentation/routing.md index 550e2ddc..eee1bb8c 100644 --- a/laravel/documentation/routing.md +++ b/laravel/documentation/routing.md @@ -78,6 +78,13 @@ #### Allowing a URI segment to be any alpha-numeric string: // }); +#### Catching the remaining URI without limitations: + + Route::get('files/(:all)', function($path) + { + // + }); + #### Allowing a URI segment to be optional: Route::get('page/(:any?)', function($page = 'index') From c44e69bf80dd3c6b31f2055c5d21afe017cab9d7 Mon Sep 17 00:00:00 2001 From: "H.J. van Meerveld" Date: Sat, 25 Aug 2012 22:09:20 +0200 Subject: [PATCH 3/4] improved code to insert related models --- laravel/documentation/database/eloquent.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/documentation/database/eloquent.md b/laravel/documentation/database/eloquent.md index e9eb32a1..cbcf83c9 100644 --- a/laravel/documentation/database/eloquent.md +++ b/laravel/documentation/database/eloquent.md @@ -299,7 +299,7 @@ ## Inserting Related Models $post = Post::find(1); - $post->comments()->insert($comment); + $comment = $post->comments()->insert($comment); 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. @@ -323,7 +323,7 @@ ### Inserting Related Models (Many-To-Many) $user = User::find(1); - $user->roles()->insert($role); + $role = $user->roles()->insert($role); 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! From 1f005bd7e5f737c23f52afd48dc9b2974d1261ea Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 1 Sep 2012 22:16:30 -0500 Subject: [PATCH 4/4] Remove notification from travis file. --- .travis.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index a1bcd71c..1d589555 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,4 @@ language: php php: - 5.3 -script: "php artisan test:core" - -notifications: - irc: - - "irc.freenode.org#laravel" \ No newline at end of file +script: "php artisan test:core" \ No newline at end of file