Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Craytor's avatar

Laravel Elixir Gulp Notifications

Hello!

Is it possible to change these messages on Windows to have the text that Jeffery has on his MacBook during his tutorial? The pic below shows what it looks like when CSS is compiled.

http://i.imgur.com/XeMhtbq.png?1

Thanks!

0 likes
7 replies
Craytor's avatar

Okay, I don't use homestead, but I did see that Growl thing. The issue is, is that I don't want to use Growl, as Windows has notifications itself. It has to be possible, maybe @JefferyWay can look at this post since he is the founder of Elixir.

JeffreyWay's avatar

I don't know. I'll check with the gulp-notify package repo, to see if there's known issue with Windows messages.

martialc's avatar

Editing 'node_modules/laravel-elixir/ingredients/helpers/GulpCssCompiler.js' and adding a message to the "plugins.notify" method fixes the problem.

You can copy/paste the subtitle values to get the same result.

1 like
plakhin's avatar

For Windows: In latest L5 (for the date of the post) you can change this file: node_modules/laravel-elixir/ingredients/commands/Notification.js

to:

var notify = require('gulp-notify');

module.exports = function() {

    this.title = 'Laravel Elixir';

    this.message = function(message) {
        return notify({
            title: this.title,
            subtitle: '',
            icon: __dirname + '/../../icons/laravel.png',
            message: message
        });
    };

    this.error = function(e, subtitle) {
        return notify.onError({
            title: this.title + ': ' + subtitle,
            subtitle: '',
            icon: __dirname + '/../../icons/fail.png',
            message:  'Error: <%= error.message %>'
        })(e);
    };

    this.forPassedTests = function(framework) {
        return notify({
            title: this.title + ': Passed!',
            subtitle: '',
            icon: __dirname + '/../../icons/pass.png',
            message:  'Your ' + framework + ' tests passed!'
        });
    };

    this.forFailedTests = function(e, framework) {
        return notify.onError({
            title: this.title + ': Failed!!!',
            subtitle: '',
            icon: __dirname + '/../../icons/fail.png',
            message:  'Your ' + framework + ' tests failed!'
        })(e);
    };

};
leonardharley's avatar

Does anyone know how to get Elixir notifications from gulp running inside a Homestead VM to display on the host (running Win 7)? I tried the vagrant-notify plugin which would seem to be the answer but it fails on Win 7 due to a Ruby issue. Any advice / workaround / solution appreciated.

1 like

Please or to participate in this conversation.