We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After generating the migrations, I try to migrate but get this error
BadMethodCallException Method Illuminate\Database\Schema\Blueprint::int does not exist. at vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:112 108▕ */ 109▕ public function __call($method, $parameters) 110▕ { 111▕ if (! static::hasMacro($method)) { ➜ 112▕ throw new BadMethodCallException(sprintf( 113▕ 'Method %s::%s does not exist.', static::class, $method 114▕ )); 115▕ } 116▕ 1 Modules/Wharehouse/database/migrations/2024_06_21_07_0606_1111_create_wharehouse_products_table.php:23 Illuminate\Database\Schema\Blueprint::__call("int") +4 vendor frames 6 Modules/Wharehouse/database/migrations/2024_06_21_07_0606_1111_create_wharehouse_products_table.php:14 Illuminate\Support\Facades\Facade::__callStatic("create")
the problem is in the migrations created
auto generated (with error)
Schema::create('wharehouse_categories', function (Blueprint $table) { $table->id(); $table->string("name"); $table->string("slug"); $table->int("parent_id")->nullable(); $table->timestamps(); });
corrected
Schema::create('wharehouse_categories', function (Blueprint $table) { $table->id(); $table->string("name"); $table->string("slug"); $table->integer("parent_id")->nullable(); $table->timestamps(); }); ``` int-> integer
The text was updated successfully, but these errors were encountered:
Migration error #12
e99537d
fixed
Sorry, something went wrong.
No branches or pull requests
After generating the migrations, I try to migrate but get this error
the problem is in the migrations created
auto generated (with error)
corrected
The text was updated successfully, but these errors were encountered: