preemiere / laravel-ide-helper
Laravel IDE Helper, provide faker classes for Eloquent Schema Builder, to improve auto-completion.
Installs: 137
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/preemiere/laravel-ide-helper
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, provide faker classes for Eloquent Schema Builder, to improve auto-completion.
Install
Require this package with composer using the following command:
composer require preemiere/laravel-ide-helper
Usage
To use this helper, just use this Blueprint class instead builtin
use preemiere\LaravelIdeHelper\Database\Schema\Blueprint;
It should look like this
<?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');
}
}