File: /home/imensosw/liftcincy.imenso.co/app/Http/Controllers/DownloadController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Response;
class DownloadController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
//$this->middleware('auth');
}
public function accessibility(){
//PDF file is stored under project/public/download/info.pdf
$file= public_path(). "/frontend/doc/Accessibility.pdf";
$headers = array(
'Content-Type: application/pdf',
);
return Response::download($file, 'accessibility.pdf', $headers);
}
}