src/Http/Controllers/JsLocalizationController.php
public function deliverAllInOne()
    {
        $contents = file_get_contents( __DIR__."/../../../public/js/localization.min.js" );
        $contents .= "\n";
        $contents .= $this->getMessagesJson();
        $contents .= $this->getConfigJson();

        /** @var \Illuminate\Http\Response $response */
        $response = response($contents);
        $response->header('Content-Type', 'text/javascript');

        if (ConfigCachingService::isDisabled()) {
            $response->setEtag(md5($contents));
        } else {
            $response->setLastModified(MessageCachingService::getLastRefreshTimestamp());
        }

        return $response;
    }
public function deliverAllInOne()
    {
        $contents = file_get_contents( __DIR__."/../../../public/js/localization.min.js" );
        $contents .= "\n";
        $contents .= $this->getMessagesJson();
        $contents .= $this->getConfigJson();

        /** @var \Illuminate\Http\Response $response */
        $response = response($contents);
        $response->header('Content-Type', 'text/javascript');

        if (ConfigCachingService::isDisabled()) {
            $response->setEtag(md5($contents));
        } else {
            $response->setLastModified(MessageCachingService::getLastRefreshTimestamp());
        }

        return $response;
    }
public function deliverAllInOne ( ) { $ contents = file_get_contents ( __DIR__ . "/../../../public/js/localization.min.js" ) ; $ contents .= "\n" ; $ contents .= $ this -> getMessagesJson ( ) ; $ contents .= $ this -> getConfigJson ( ) ; /** @var \Illuminate\Http\Response $response */ $ response = response ( $ contents ) ; $ response -> header ( 'Content-Type' , 'text/javascript' ) ; if ( ConfigCachingService :: isDisabled ( ) ) { $ response -> setEtag ( md5 ( $ contents ) ) ; } else { $ response -> setLastModified ( MessageCachingService :: getLastRefreshTimestamp ( ) ) ; } return $ response ; }
Deliver one file that combines messages and framework.
Saves one additional HTTP-Request

@return \Illuminate\Http\Response
Deliver one file that combines messages and framework . Saves one additional HTTP - Request