2016-10-31 21:00:30 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use App\Helpers\Helper;
|
|
|
|
use Response;
|
|
|
|
|
|
|
|
class ActionlogController extends Controller
|
|
|
|
{
|
|
|
|
public function displaySig($filename)
|
|
|
|
{
|
2016-12-19 11:04:28 -08:00
|
|
|
$this->authorize('view', \App\Models\Asset::class);
|
2021-06-10 13:15:52 -07:00
|
|
|
$file = config('app.private_uploads').'/signatures/'.$filename;
|
2016-10-31 21:00:30 -07:00
|
|
|
$filetype = Helper::checkUploadIsImage($file);
|
|
|
|
$contents = file_get_contents($file);
|
2021-06-10 13:15:52 -07:00
|
|
|
|
2016-10-31 21:00:30 -07:00
|
|
|
return Response::make($contents)->header('Content-Type', $filetype);
|
|
|
|
}
|
|
|
|
}
|