1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-18 14:44:03 +00:00
tenancy/src/Controllers/TenantAssetsController.php
2019-02-08 23:25:50 +01:00

22 lines
418 B
PHP

<?php
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);
}
}
}