From c667788be7d7f13b74afcc96994526c3d748054b Mon Sep 17 00:00:00 2001 From: Purwandi Date: Fri, 27 Jul 2012 22:34:41 +0700 Subject: [PATCH 1/2] Add decimal schema on docs Signed-off-by: Purwandi --- laravel/documentation/database/schema.md | 1 + 1 file changed, 1 insertion(+) diff --git a/laravel/documentation/database/schema.md b/laravel/documentation/database/schema.md index 65c4e6ca..584a9139 100644 --- a/laravel/documentation/database/schema.md +++ b/laravel/documentation/database/schema.md @@ -62,6 +62,7 @@ Command | Description `$table->string('name', 100);` | VARCHAR equivalent with a length `$table->integer('votes');` | INTEGER equivalent to the table `$table->float('amount');` | FLOAT equivalent to the table +`$table->decimal('amount', 5, 2);` | DECIMAL equivalent with a precision and scale `$table->boolean('confirmed');` | BOOLEAN equivalent to the table `$table->date('created_at');` | DATE equivalent to the table `$table->timestamp('added_on');` | TIMESTAMP equivalent to the table From 727afc1bfa4f4eb0033a5705895bc39309e2f63d Mon Sep 17 00:00:00 2001 From: apathetic012 Date: Fri, 3 Aug 2012 10:01:16 +0800 Subject: [PATCH 2/2] fix namespace issue on exception Signed-off-by: apathetic012 --- laravel/ioc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/ioc.php b/laravel/ioc.php index b2597d32..5b448dca 100644 --- a/laravel/ioc.php +++ b/laravel/ioc.php @@ -158,7 +158,7 @@ class IoC { // no binding registered for the abstraction so we need to bail out. if ( ! $reflector->isInstantiable()) { - throw new Exception("Resolution target [$type] is not instantiable."); + throw new \Exception("Resolution target [$type] is not instantiable."); } $constructor = $reflector->getConstructor(); @@ -195,7 +195,7 @@ class IoC { // we'll just bomb out with an error since we have nowhere to go. if (is_null($dependency)) { - throw new Exception("Unresolvable dependency resolving [$parameter]."); + throw new \Exception("Unresolvable dependency resolving [$parameter]."); } $dependencies[] = static::resolve($dependency->name);