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 table bigint

$this->bigIncrements('id');
This takes care of making it unsigned, auto increment and primary key
Comment

laravel migration mediumtext 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 :: how to go to another folder in php 
Php :: add two numbers as string in php 
Php :: php date add days 
Php :: installing bootstrap ui in laravel app 
Php :: phpexcel set data type string 
Php :: Line : 83 -- syntax error, unexpected end of file php 
Php :: wordpress translate specific text php 
Php :: how to make-migrations in laravel 
Php :: Modes for File Read PHP 
Php :: laravel 8 route 
Php :: var_dump php 
Php :: localhost didn’t send any data 
Php :: php oop 
Php :: php if else wordpress 
Php :: php array length for loop 
Php :: left join laravel 
Php :: laravel empty query result 
Php :: laravel show debug query sql 
Php :: xamp to test on mobile 
Php :: the_post_thumbnail 
Php :: php count matching words in two strings 
Php :: how to create controller inside folder in laravel 
Php :: check if elquent retrun empty array laravel 
Php :: laravel pass variables to view 
Php :: array associativo php 
Php :: php createFromFormat day of week 
Php :: report simple error in php 
Php :: php www to non www redirect 
Php :: Class "Controller" not found 
Php :: php string to uppercase 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =