Skip to content

Instantly share code, notes, and snippets.

@mitrallex
Created February 5, 2018 11:57
Show Gist options
  • Save mitrallex/997d05b2ab0816d7f30d8bf42e4acd02 to your computer and use it in GitHub Desktop.
Save mitrallex/997d05b2ab0816d7f30d8bf42e4acd02 to your computer and use it in GitHub Desktop.
laravel-file-hosting
fetchFile(type, page) {
this.loading = true;
axios.get('files/' + type + '?page=' + page).then(result => {
this.loading = false;
this.files = result.data.data.data;
this.pagination = result.data.pagination;
}).catch(error => {
console.log(error);
this.loading = false;
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment