ation: 1071 Specified key was too long; max key length is 1000 bytes
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
//add/edit the following into app/Providers/AppServiceProviders.php:
use Illuminate\Support\Facades\Schema;
function boot()
{
Builder::defaultStringLength(191); // Update defaultStringLength
}
Also in PHP:
- codeigniter base url automatic
- date between query in codeigniter
- all error in php
- can you use return in catch php
- check mail php
- check if table exists sql php
- application of laravel
- codeigniter db insert return id
- fgetxls php
- codeigniter insertID
- can we use a header function to redirect the user to another page
- consol log php variables
- delete uploaded file php
- find string php
- douzo definition
- php auto refresh page
- clear all cache laravel
- check typeof php
- creating new laravel project using composer
- Allowed memory size of 1610612736 bytes exhausted laragon
- PHP format date in string
- convert timestamp integer to date php
- AWS HTTP error: Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
- array key exi