Welcome to a series of Deploying a Laravel Application.
Laravel applications are deployed on many sites.
I will be taking you through on how to deploy a laravel application which has a database and to be specific, Postgresql Database.
| <template lang="html"> | |
| <div :class="'img-'+this.mainImgID" id="cvs_thumnails_box"> | |
| <canvas id="cvs"> | |
| </canvas> | |
| <div id="thumbnails"> | |
| <div v-for="t in thumbnails" @click="changeImg(t.id)" :class="'thumbnail-'+ t.id" class="thumbnail"> | |
| </div> | |
| </div> | |
| </div> | |
| </template> |
| axios({ | |
| url: 'http://localhost:5000/static/example.pdf', | |
| method: 'GET', | |
| responseType: 'blob', // important | |
| }).then((response) => { | |
| const url = window.URL.createObjectURL(new Blob([response.data])); | |
| const link = document.createElement('a'); | |
| link.href = url; | |
| link.setAttribute('download', 'file.pdf'); | |
| document.body.appendChild(link); |
| /** | |
| * Convert an image | |
| * to a base64 url | |
| * @param {String} url | |
| * @param {Function} callback | |
| * @param {String} [outputFormat=image/png] | |
| */ | |
| function convertImgToBase64URL(url, callback, outputFormat){ | |
| var img = new Image(); | |
| img.crossOrigin = 'Anonymous'; |