rcrowe / laravel-database
该包最新版本(v0.1.0)没有可用的许可证信息。
为 Laravel 数据库层添加了一些缺失的功能。
v0.1.0
2013-09-23 11:24 UTC
Requires (Dev)
- illuminate/database: 4.0.*
- illuminate/foundation: 4.0.*
- mockery/mockery: 0.7.2
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-08-29 03:10:43 UTC
README
为 Laravel 的数据库层提供额外/缺失的功能。
安装
将 rcrowe\laravel-database
添加到 composer.json 的需求中
{ "require": { "rcrowe/laravel-sentry": "0.1.*" } }
使用 composer update
更新您的包,或使用 composer install
安装。
一旦 Composer 安装或更新了您的包,您需要将其注册到 Laravel 本身。打开 app/config/app.php,将现有的数据库服务提供者 'Illuminate\Database\DatabaseServiceProvider'
替换为以下内容
'rcrowe\Database\DatabaseServiceProvider'
功能
此库提供了以下额外功能
模式构建器
character
已添加到模式构建器(MySql / Postgre)。用法如$table->character('field', 6)
。取自 http://forums.laravel.io/viewtopic.php?id=7320