Answers for "laravel text migration length"

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 string length

//Add this code to your AppServiceProvider
use Illuminate\Database\Schema\Builder;


public function boot()
{
    Builder::defaultStringLength(191);
}
Posted by: Guest on April-02-2022

Code answers related to "laravel text migration length"

Browse Popular Code Answers by Language