1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-15 14:54:03 +00:00
tenancy/src/Controllers/TenantAssetsController.php
Samuel Štancl 2fd3662eb7
[1.8.0] Use strict types (#115)
* Use strict types

* Apply fixes from StyleCI

* Fix str_repeat

* Fix false json decode
2019-08-23 18:18:26 +02:00

24 lines
444 B
PHP

<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Controllers;
use Illuminate\Routing\Controller;
class TenantAssetsController extends Controller
{
public function __construct()
{
$this->middleware('tenancy');
}
public function asset($path)
{
try {
return response()->file(storage_path("app/public/$path"));
} catch (\Throwable $th) {
abort(404);
}
}
}