fixed attachment path

This commit is contained in:
Cüneyt Şentürk 2018-01-02 07:34:22 +03:00
parent 3e04f1295b
commit 6429a699b2
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@
@if($invoice->attachment)
<span class="attachment">
<a href="{{ url('uploads/invoices/' . $invoice->attachment->basename . '/download') }}">
<a href="{{ url('uploads/' . $invoice->attachment->id . '/download') }}">
<span id="download-attachment" class="text-primary">
<i class="fa fa-file-{{ $invoice->attachment->aggregate_type }}-o"></i> {{ $invoice->attachment->basename }}
</span>

View File

@ -11,7 +11,7 @@ Route::group(['middleware' => 'language'], function () {
Route::group(['prefix' => 'uploads'], function () {
Route::get('{folder}/{file}', 'Common\Uploads@get');
Route::get('{folder}/{file}/download', 'Common\Uploads@download');
Route::delete('{folder}/{id}', 'Common\Uploads@destroy');
Route::delete('{id}', 'Common\Uploads@destroy');
});
Route::group(['middleware' => ['adminmenu', 'permission:read-admin-panel']], function () {