Benutzer-Werkzeuge

Webseiten-Werkzeuge


software_handreichungen:laravel
no way to compare when less than two revisions

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.


software_handreichungen:laravel [2019/01/18 11:52] (aktuell) – angelegt andreas
Zeile 1: Zeile 1:
 +====== Laravel ======
  
 +https://laravel.com/
 +
 +===== Telescope in Subfolder =====
 +SUBFOLDER mit dem Ordnernamen ersetzten, wird nur hinzugefügt wenn APP_ENV auf ''production'' steht.
 +
 +<file php app/Provider/AppServiceProvider.php>
 +...
 +
 +    public function boot()
 +    {
 +        ...
 +
 +        if (\App::environment('production')) {
 +            \View::composer(['telescope::layout'], function ($view) {
 +                $view->with('telescopeScriptVariables', [
 +                    'path' => 'SUBFOLDER/telescope',
 +                    'timezone' => config('app.timezone'),
 +                    'recording' => !cache('telescope:pause-recording'),
 +                ]);
 +            });
 +        }
 +    }
 +
 +...
 +</file>
 +
 +Quelle: https://github.com/laravel/telescope/pull/281#issuecomment-442061169
 +
 +
 +===== Laravel Mix in Subfolder =====
 +SUBFOLDER mit dem Ordnernamen ersetzten, wird nur genutzt wenn APP_ENV auf ''production'' steht.
 +
 +<file javascript webpack.mix.js>
 +const mix = require('laravel-mix');
 +
 +if (process.env.APP_ENV == 'production') {
 +    mix.setResourceRoot('/SUBFOLDER/');
 +}
 +
 +...
 +</file>
software_handreichungen/laravel.txt · Zuletzt geändert: 2019/01/18 11:52 von andreas