1๐
To make itaccessible from the web, you need to create a symbolic link from public/storage/downlaod to storage/app/public/download
ln -s /home/vagrant/Code/laravel-project-name/storage/app/public/download /home/vagrant/Code/laravel-project-name/public/storage/download
๐คankit patel
- [Vuejs]-Create a countdown in vuejs with momentjs
- [Vuejs]-Vue Js History mode is not removing # when using # ids in menu links
1๐
if your download folder is located at public folder you can props to import your specific file.
laravel Blade
@extends('layouts.esic')
@section('content')
<solicitante :pdf ="{{ json_encode(asset('download/form.pdf')) }}"></solicitante>
@endsection
component vue. (something like this one)
<template>
<a href= {{ pdf }}> Download here. </a>
</template>
<script>
export default {
props: ['pdf'],
..............
Im not sure if this way are you looking for,
(sharing some idea ๐
๐คKenneth
- [Vuejs]-How to pass post parameter from laravel route to axios in vue js?
- [Vuejs]-V-on:click not working on button when clicking it's content in bootstrap-vue
1๐
Try this one if you want to just insert a link in vue
<a v-bind:href="url">{{ url }}</a>
export default {
data() {
return { url: 'http://anywhere.com' };
}
}
Hope this help ๐
๐คemjr
Source:stackexchange.com