Search
 
SCRIPT & CODE EXAMPLE
 

PHP

long text in laravel migration

Schema::create('posts', function ($table) {
    $table->increments('id');
    $table->integer('user_id');
    // ...
    $table->longText('description');
    // ...
}
Comment

bigtext migration laravel

            $table->longText('description');
Comment

laravel migration text length

For Laravel & Mysql

String types
CHAR - 1 to 191 (trailing spaces removed)
STRING - 1 to 16,300 (user defined)
TEXT - 1 to 65,535
MEDIUMTEXT - 1 to 16,777,215
LONGTEXT - 1 to 4,294,967,295

Integer types
TINYINT - 0 to 255 (unsigned) | -128 to 127 (signed)
SMALLINT - 0 to 65,535 (unsigned) | -32,768 to 32,767 (signed)
MEDIUMINT - 0 to 16,777,215 (unsigned) | -8,388,608 to 8,388,607 (signed)
INT - 0 to 4,294,967,295 (unsigned) | -2,147,483,648 to 2,147,483,647 (signed)
BIGINT - 0 to 18,446,744,073,709,551,615 (unsigned) | -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 (signed)

Floating types
Structure: `([max decimal places], [max precision])`
FLOAT - ([0-7], [0-23])
DOUBLE - ([0-14], [24-53])
DECIMAL - ([0-65], [0-30])
Comment

PREVIOUS NEXT
Code Example
Php :: laravel migration int length 
Php :: how to fetch all user data form user in wp 
Php :: php thread safe or non thread safe 
Php :: wp wc php out of stock product to bottom 
Php :: IP Authorization php code 
Php :: year dropdown loop in php 
Php :: convert to string php 
Php :: explode (PHP 4, PHP 5, PHP 7, PHP 8) explode — Split a string by a string 
Php :: no routes.php in http folder 
Php :: php return associative array 
Php :: laravel route 
Php :: laravel auth sha-1 
Php :: laravel date format valdiate 
Php :: php empy a file 
Php :: post is empty php api 
Php :: order by pre get posts 
Php :: laravel firstorcreate usage 
Php :: convert_uuencode (PHP 5, PHP 7, PHP 8) convert_uuencode — Uuencode a string 
Php :: Laravel Retrieving & Deleting An Item from session 
Php :: wc php get shipping methods 
Php :: + php quantifer 
Php :: cideigniter orLike() 
Php :: convertidos de 24 12 hr php 
Php :: sometimes validation in laravel 
Php :: blade check user role laravel 
Php :: laravel compile assets 
Php :: update php local 
Php :: laravel index method 
Php :: create a button add in laravel 
Php :: livewire model bind item in array 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =