defaultStringLength laravel
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:
- db seed specific seeder
- db seed in laravel
- check the existing image in s3 laravel
- execute composer with php version
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0"
- create table modal and seeder at once in laravel
- am and pm in php
- divided by 3 php
- data type checking php
- email configuration for gmail in laravel
- convert upper case php
- clear cache in laravel putty
- base64 file php
- clear everything laravel
- find a string in another one phph
- date to timestamp php
- SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
- Create cap with php
- calculate person age by birthdate php
- contain in string php
- am pm date format php
- convert dd/mm/yyyy to yyyy-mm-dd in mysql php
- The key "initial" is not recognized and ignored.
- composer create-project --prefer-dist laravel/laravel blog