Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
app
/
Http
/
Controllers
/
V1
/
Admin
/
Invoice
:
StyleController-20250318152821.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace App\Http\Controllers\V1\Modules; use App\Http\Controllers\Controller; use App\Services\Module\ModuleFacade; use DateTime; use Illuminate\Support\Arr; use Request; class StyleController extends Controller { /** * Serve the requested stylesheet. * * @return \Illuminate\Http\Response * * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ public function __invoke(Request $request, string $style) { $path = Arr::get(ModuleFacade::allStyles(), $style); abort_if(is_null($path), 404); return response( file_get_contents($path), 200, [ 'Content-Type' => 'text/css', ] )->setLastModified(DateTime::createFromFormat('U', filemtime($path))); } }