Support the ongoing development of Laravel.io →
Requests Database
Last updated 1 year ago.
0

You can make your controller function return a download. So you can make a route like this:

Route::get('/download/{id}', ['uses' => 'DownloadController@getDownload']);

and then a method like this in the DownloadController

function getDownload($id) {
    $download = Download::findOrFail($id);
    $download->increment('downloads');
    return response()->download($download->filePath);
}

You can read more about this here: http://laravel.com/docs/5.1/responses#file-downloads

0

Yes, Cloudbacko home supports Windows as well it can give backup and helps restoring also. Cloudbacko home software is designed for backing up home Windows and Mac desktops and laptops. It can continuously back up your important files and folders to local and cloud storage whenever there is a change in content.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.