foreignId is a method introduced in Laravel 7. For 5.6 you need to use unsignedBigInteger. Here's the complete list laravel.com/docs/5.6/migrations#cr...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks Benjamin! Helps a lot. I do get this error when migrating the role_user table. Any thoughts?
Laravel 5.6: BadMethodCallException Illuminate\Database\Schema\Blueprint::foreignId does not exist.
Hello Eelco,
foreignId
is a method introduced in Laravel 7. For 5.6 you need to useunsignedBigInteger
. Here's the complete list laravel.com/docs/5.6/migrations#cr...