preemiere / laravel-ide-helper
该包已被废弃,不再维护。未建议替代包。
Laravel IDE Helper,为 Eloquent Schema Builder 提供 faker 类,以改善自动补全。
1.1.0
2015-12-20 23:26 UTC
Requires
- php: >=5.4.0
- illuminate/database: 5.0.x|5.1.x
- illuminate/support: 5.0.x|5.1.x
This package is not auto-updated.
Last update: 2016-09-03 21:05:00 UTC
README
Laravel IDE Helper,为 Eloquent Schema Builder 提供 faker 类,以改善自动补全。
安装
使用以下命令通过 composer 安装此包
composer require preemiere/laravel-ide-helper
用法
要使用此辅助工具,只需使用此 Blueprint 类替代内置类
use preemiere\LaravelIdeHelper\Database\Schema\Blueprint;
它应该看起来像这样
<?php use Illuminate\Database\Migrations\Migration; use preemiere\LaravelIdeHelper\Database\Schema\Blueprint; class CreateTable extends Migration { public function up() { Schema::create('table', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); }); } public function down() { Schema::drop('table'); } }