fixed attachment path
This commit is contained in:
parent
3e04f1295b
commit
6429a699b2
@ -181,7 +181,7 @@
|
|||||||
|
|
||||||
@if($invoice->attachment)
|
@if($invoice->attachment)
|
||||||
<span class="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">
|
<span id="download-attachment" class="text-primary">
|
||||||
<i class="fa fa-file-{{ $invoice->attachment->aggregate_type }}-o"></i> {{ $invoice->attachment->basename }}
|
<i class="fa fa-file-{{ $invoice->attachment->aggregate_type }}-o"></i> {{ $invoice->attachment->basename }}
|
||||||
</span>
|
</span>
|
||||||
|
@ -11,7 +11,7 @@ Route::group(['middleware' => 'language'], function () {
|
|||||||
Route::group(['prefix' => 'uploads'], function () {
|
Route::group(['prefix' => 'uploads'], function () {
|
||||||
Route::get('{folder}/{file}', 'Common\Uploads@get');
|
Route::get('{folder}/{file}', 'Common\Uploads@get');
|
||||||
Route::get('{folder}/{file}/download', 'Common\Uploads@download');
|
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 () {
|
Route::group(['middleware' => ['adminmenu', 'permission:read-admin-panel']], function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user