問題タブ [laravel-9]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - 配列をルートパラメーターとして適切に使用する方法
私はこのアクションを持つフォームを持っています:
基本的に、$attribute_ids
次のような配列です。
そして、ここにルートがあります:
次に、コントローラーで、次のようにメソッドを設定します。
しかし、私はこのエラーが発生します:
関数 ProductController::postAttribute() への引数が少なすぎます。54 行目で C:\projectname\vendor\laravel\framework\src\Illuminate\Routing\Controller.php に 3 つ渡され、正確に 4 つが必要です
それで、ここで何がうまくいかないのですか?配列をルートパラメータとして適切に使用するにはどうすればよいですか?