I have this migration:
Schema::create(\'provincias\', function (Blueprint $table) { $table->string(\'codigo\', 2); $table->string(\'nombre\', 5
You can try setting public $incrementing = false; on your model so eloquent doesn't expect your primary key to be an autoincrement primary key.
public $incrementing = false;