Support the ongoing development of Laravel.io →
posted 5 years ago
Laravel
Last updated 1 year ago.
0

Field 'description' doesn't have a default value

you should probabaly make that column nullable

https://laravel.com/docs/5.8/migrations#column-modifiers

Last updated 5 years ago.
0

Either make the description column nullable (default null or empty string) or $description = request()->get('description','fallbackVal');

0

Make the field nullable in MySQL

0

@Cameron thanks it works

0

Glad it’s working

0

Sign in to participate in this thread!

Eventy

Your banner here too?

yosra yosrabettaieb Joined 1 Feb 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.