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

acasar's avatar
Level 13

Laravel Elixir

Elixir is coming :) Exciting stuff! All those annotations are starting to make sense now.

https://github.com/laravel/elixir

0 likes
81 replies
keevitaja's avatar

Laravel is going insane as Taylor is working every other week on it! In a good way insane!

I hope that documentation catches up as it is not an easy task to document a project with the scale of L5.

1 like
JeffreyWay's avatar

I'll talk to you all about this momentarily (in a video).

7 likes
acasar's avatar
Level 13

It really seems like Laravel has done more in the past month than in the entire year before that. Can't wait to hear more about this. It's like christmas is coming early :D

JeffreyWay's avatar

A lot of it is because Taylor is now able to work on Laravel full-time every other week.

adamwathan's avatar

Wow this is great!

Are there configuration options if you are breaking any conventions in any way? Say you want your less files to end up in public/assets/css instead of just public/css for example? Or how about if you don't want to minify things in development?

Awesome work on this man!

acasar's avatar
Level 13

@JeffreyWay That's so cool! I was putting off transitioning to Gulp for far too long, since it seemed to be quite some work to get it all up and running. But now it seems like a piece of cake. I'll need to try it right away. :)

And I'm also wondering if there is any way to disable minification on local enviroment? That way it would be much easier to debug the code.

keevitaja's avatar

@anzze gulp is nothing to setup. Which OS do you use?

I am linux user myself, but while ago when i was on windows, i had gulp as well. Just needed to install node and ruby to get npm and gems as far as i remember.

xingfucoder's avatar

Great new feature! Many changes and news in Laravel 5.0, as @anzze says is a great Christmas present.

I'll be waiting for the revised official documentation for all changes (Socialite, Annotations, Middlewares, Elixir, ...). It will be great!

acasar's avatar
Level 13

@keevitaja I'm on Windows and I was always kinda stiff towards all this node and ruby stuff. But recently I started using Homestead, so it shouldn't be a big problem to get this thing up and running. I guess it's finally time to get over it and give it a try.

keevitaja's avatar

@anzze if you do not use Adobe paid software or MS Office, you could give to Ubuntu a chance as your OS of choice :) Windows is just a horrible OS ...

For the example in linux i can set up ruby and node with one command

sudo apt-get install ruby ruby-dev nodejs

And all required dependencies get installed by magic.

joshmanders's avatar

I think the best route is to have homestead automatically have node.js, gulp, and all that installed, then use vagrant-exec plugin to issue commands in the VM from your host. This is what I do for my stuff. So vagrant exec gulp would be the same as gulp after vagrant ssh

1 like
keevitaja's avatar

@Killswitch can you execute any command like this? I do not use much VM-s, but this sounds brilliant. Didn't know about it!

zcuric's avatar

This is awesome! Although I have problem instaling gulp on homestead on my Win7 laptop :/ ERR everywhere.

xingfucoder's avatar

Hi, I'm trying to run the npm install command but I get many errors as you can see:

ElixirErrors

I'm running in a Windows 8 OS with Laravel Homestead installed in VirtualBox.

Someone has the same errors?

Thanks in advanced.

1 like
xingfucoder's avatar

I didn't change anything related with NodeJS, so the installation of Laravel Homestead and Vagrant is a fresh install.

keevitaja's avatar

I'm not sure, if this will help as i do not have had any problems like this.

You first need to run sudo npm install -g gulp to install globally (is it installed by homestead provisioner?) and then in project directory npm install --save-dev gulp

If you ran --save-dev with sudo, check if tmp in your home folder is owned by root. If it is, then delete it with sudo!

JeffreyWay's avatar

Pretty sure that Node and Gulp are included with Homestead.

fenos's avatar

The command gulp and gulp watch should be started from outside the VM I'm correct?

keevitaja's avatar

@codeatbusiness then uninstall gulp with sudo npm uninstall -g gulp and in your project directory remove node_modules folder and start from scratch with intalling gulp globally with sudo npm install -g gulp and then same with --save-dev without sudo!

Next

Please or to participate in this conversation.