From a03bcb521ba8099f9f935d4a8fac13058460e926 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Tue, 17 Jul 2012 23:51:00 +0300 Subject: [PATCH] Mention default value helper function in database schema documentation. --- 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 16ed318c..65c4e6ca 100644 --- a/laravel/documentation/database/schema.md +++ b/laravel/documentation/database/schema.md @@ -69,6 +69,7 @@ ## Adding Columns `$table->text('description');` | TEXT equivalent to the table `$table->blob('data');` | BLOB equivalent to the table `->nullable()` | Designate that the column allows NULL values +`->default($value)` | Declare a default value for a column > **Note:** Laravel's "boolean" type maps to a small integer column on all database systems.