Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Illuminate\Database support #4

Merged
merged 1 commit into from
Mar 23, 2019
Merged

Add Illuminate\Database support #4

merged 1 commit into from
Mar 23, 2019

Conversation

knowler
Copy link
Member

@knowler knowler commented Jan 14, 2019

This would let us create custom DB tables like this:

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;

Schema::create('examples', function (Blueprint $table) {
    $table->increments('id');
    $table->string('name');
    $table->timestamps();
});

Also, Eloquent will work out of the box too, so we can create models:

use Illuminate\Database\Eloquent\Model;

class Example extends Model
{
    protected $fillable = ['name'];
}

@knowler knowler requested a review from QWp6t January 14, 2019 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants