私たちは、(\ Com \ Tecnick \ Barcode \ Barcode())QRCODE Generatorを使用して、SNIPE IT資産管理を行っています。そのは完全に作業と生産QRCode Generation in Laravel
URL:使用して、http://xxxxx/xxxx/public/hardware/29/345/view
私たちは、(\ Com \ Tecnick \ Barcode \ Barcode())QRCODE Generatorを使用して、SNIPE IT資産管理を行っています。そのは完全に作業と生産QRCode Generation in Laravel
URL:使用して、http://xxxxx/xxxx/public/hardware/29/345/view
あなたが正しくLaravelアプリケーションを設計していると仮定すると:http://xxxxx/xxxx/public/hardware/29/view
は、今、私たちは
URLは、以下のように、そのURLに新しいパラメータを追加したいですモデルとモデルバインディングを使用すると、次のことができます。
あなたはルートが必要になります。
// Assuming you have a model called Hardware.
$router->get('hardware/{hardware}/view', function (Hardware $hardware) {
return Barcode::generate('...'); // This is where you'd call the Barcode library you're using
});
Thanks Janmes ... – Sundar
明確にあなたの質問を明記してください。 –
新しいパラメータを経路に動的に追加したいですか? EX:Route :: get( '{assetId}/{assetTag}/view'、['as' => 'ビュー/ハードウェア'、 'uses' => 'AssetsController @ getView']); getView関数を呼び出すと、QRCOdeルートを呼び出すとQRCode pngデータが生成されます – Sundar