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?

Комментарии

Популярные сообщения из этого блога

Unable to construct Application instance [duplicate]

What is considered 'insulting a Muslim'? And is it a sin? If so, is it a minor or major scene?