26 lines
583 B
PHP
26 lines
583 B
PHP
<?php namespace Unisharp\Laravelfilemanager\controllers;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Support\Facades\Config;
|
|
use Illuminate\Support\Facades\Input;
|
|
use Illuminate\Support\Facades\Response;
|
|
use Illuminate\Support\Facades\Session;
|
|
|
|
/**
|
|
* Class DownloadController
|
|
* @package Unisharp\Laravelfilemanager\controllers
|
|
*/
|
|
class DownloadController extends LfmController {
|
|
|
|
/**
|
|
* Download a file
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getDownload()
|
|
{
|
|
return Response::download(parent::getPath() . Input::get('file'));
|
|
}
|
|
|
|
}
|