Answers for "big string laravel migration"

PHP
0

long text in laravel migration

Schema::create('posts', function ($table) {
    $table->increments('id');
    $table->integer('user_id');
    // ...
    $table->longText('description');
    // ...
}
Posted by: Guest on September-04-2021
-1

laravel migration table bigint

$this->bigIncrements('id');
This takes care of making it unsigned, auto increment and primary key
Posted by: Guest on February-17-2021

Code answers related to "big string laravel migration"

Browse Popular Code Answers by Language