defaultstringlength(191)
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:
- detect keyword of php string
- extract data from api callback php
- check lenght phph
- data time on php
- clear cahce laravel
- Get the content of a specific page (by ID)
- date function attributes in php
- execute composer with php version
- calculate person age by birthdate php
- PHP @ errors
- array_search in php
- catching error php
- count sql query in php
- ADD OR ON SWITCH CASE PHP
- "Fatal error: Allowed memory size of 1610612736 bytes exhausted " +laravel
- cache issue laravel
- create a folder php
- find string pos
- create DateTime from timestamp php
- clear cache php artisan
- dateformt php
- Illuminate\Contracts\Container\BindingResolutionException Target class [HomeController] does not exist.
- date format change in laravel blade
- clear cache laravel and composer