Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Method Illuminate\Database\Schema\Blueprint::unsignedDouble does not exist. on Laravel 11 #8

Open
ezerway opened this issue Aug 25, 2024 · 1 comment

Comments

@ezerway
Copy link

ezerway commented Aug 25, 2024

$table->unsignedDouble('price')->default(0);

#Screenshots
Screenshot 2024-08-26 at 02 05 40

@ezerway ezerway changed the title ERROR Method Illuminate\Database\Schema\Blueprint::unsignedDouble does not exist. on Laravel 11 [ERROR] Method Illuminate\Database\Schema\Blueprint::unsignedDouble does not exist. on Laravel 11 Aug 25, 2024
@ezerway
Copy link
Author

ezerway commented Aug 25, 2024

Maybe we should update it to

$table->double('price', 15, 8)->default(0)->unsigned(); // Correct way to define an unsigned double column

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant