how to pass parameters in named route in laravel
I want to pass the parameters in the url in my blade template, url is:
href="/finance/invoices/download/{{ $invoice->file_path }}
and in web.php the route is defined as:
Route::get('invoices/download/{year}/{month}/{file}','InvoiceController@download')->name('download');
and the file is stored in the database as :
2018/07/invoiceberry_invoice_template_1.docx
how do I do that?
href="/finance/invoices/download/{{ $invoice->file_path }}
and in web.php the route is defined as:
Route::get('invoices/download/{year}/{month}/{file}','InvoiceController@download')->name('download');
and the file is stored in the database as :
2018/07/invoiceberry_invoice_template_1.docx
how do I do that?
Комментарии
Отправить комментарий