Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
public function up()
{
Schema::create('projects', function (Blueprint $table) {
$table->id();
$table->foreignIdFor(User::class)->constrained();
$table->string("name", 100)->unique();
$table->string("slug", 100)->nullable()->unique();
$table->text("description")->nullable();
$table->string("featured_image", 150)->nullable();
$table->timestamps();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment