Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel migration table bigint

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

laravel migration mediumint 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 mediumint length 
Php :: laravel migration tinyint length 
Php :: json decode 
Php :: cf7 remove p tags 
Php :: quitar html con laravel 5 
Php :: laravel https middleware 
Php :: vindecoder.eu php 
Php :: php order array 
Php :: php foreach json object 
Php :: twig to pdf 
Php :: stripe php sdk constants 
Php :: how to get favicon with Goutte php 
Php :: php get locale active 
Php :: hummingbird remove caching specific page php 
Php :: user order by role spatie laravel 
Php :: laravel reoute return string 
Php :: wordpress get the short permalink 
Php :: how to close login route in laravel 
Php :: octobercms mail register 
Php :: Edit PHP INI 
Php :: how to redirect in php use variable from another file 
Php :: switching between php versions 
Php :: How to check if a session is expired or never was set in php 
Php :: laravel return a single dimensional array 
Php :: bulk write mongodb php 
Php :: livewire model array 
Php :: Laravel Google Line Chart 
Php :: php catch fatal error 
Php :: php get error 
Php :: only get selected value from has many ralation laravel 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =