mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-15 14:54:03 +00:00
24 lines
444 B
PHP
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);
|
|
}
|
|
}
|
|
}
|