'application/javascript', 'manager.css' => 'text/css']; public function __invoke(string $file): BinaryFileResponse { abort_unless(isset(self::FILES[$file]) && is_file($path = __DIR__.'/../../../resources/dist/'.$file), 404); return response()->file($path, [ 'Content-Type' => self::FILES[$file], 'Cache-Control' => 'public, max-age=31536000, immutable', 'X-Content-Type-Options' => 'nosniff', ]); } }