Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JKirkInTexas's avatar

Table Consistency and Foreign Key Constraints

So when I was doing this lesson I am at 4:30 through the video and I get this error when trying to migrate, am I not including something again?

BadMethodCallException

Method Illuminate\Database\Schema\Blueprint::unsignedBigInterger does not exist.

at vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:113 109▕ */ 110▕ public function __call($method, $parameters) 111▕ { 112▕ if (! static::hasMacro($method)) { ➜ 113▕ throw new BadMethodCallException(sprintf( 114▕ 'Method %s::%s does not exist.', static::class, $method 115▕ )); 116▕ } 117▕

1 database/migrations/2022_05_18_133630_create_comments_table.php:18 Illuminate\Database\Schema\Blueprint::__call("unsignedBigInterger")

  +4 vendor frames

6 database/migrations/2022_05_18_133630_create_comments_table.php:24 Illuminate\Support\Facades\Facade::__callStatic("create")

0 likes
2 replies
tykus's avatar
tykus
Best Answer
Level 104

You spelled unsignedBigInterger incorrectly; it is unsignedBigInteger

1 like

Please or to participate in this conversation.