mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 02:14:33 -04:00
Fix route model binding
This commit is contained in:
parent
d58ab5d613
commit
acdd9c936c
@ -32,12 +32,10 @@ class DownloadController extends Controller
|
|||||||
/**
|
/**
|
||||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function show(ShowDocumentRequest $request, $document)
|
public function show(ShowDocumentRequest $request, Document $download)
|
||||||
{
|
{
|
||||||
$document = Document::findOrFail($document);
|
|
||||||
|
|
||||||
return render('downloads.show', [
|
return render('downloads.show', [
|
||||||
'document' => $document,
|
'document' => $download,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-500">
|
<td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-500">
|
||||||
<a href="{{ route('client.downloads.show', $download->id) }}" class="button-link">
|
<a href="{{ route('client.downloads.show', $download->hashed_id) }}" class="button-link">
|
||||||
{{ ctrans('texts.view') }}
|
{{ ctrans('texts.view') }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user