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

Napéti's avatar

I am completely lost in laravel spark

Hi guys,

I recently discovered laravel and I love it.

I bought laravel spark one month ago, but I installed it today for the first time.

And... I don't understand it. Not at all. It makes me really, really sad.

Why the fuck do I need node js ? Isn't laravel PHP ? What the hell is gulp?

There are 9999999999 files in here and I don't know where to start. The laracast videos didn't help either.

I don't understand why there are so many view files, there is an app.js file with so much code in it and I don't understand half of it, and I'm not talking about the LESS thing that I never heard about either.

I watched the tutorial about viue js and I understand why there are v-for everywhere and so on, but I can't possibly start to build a website from this thing.

This node folder drives me crazy, wtf are all these things ? http://i.imgur.com/QCgsH3w.png

I barely know OOP and I feel like I just ran into a wall. Where do I start ? Am I too noob for this ? It seems that I'll have to learn a ton of things before being able to use spark

Thanks and sorry for my English

0 likes
7 replies
jlrdw's avatar

You are new to OOP and already doing a SaaS application?

3 likes
zachleigh's avatar

Have you used Laravel before? Dont worry about the node folder...its basically a vendor folder for javascript stuff.

TiborBesze's avatar

Spark is not a ready-to-use CMS or fully featured web app on its own. You still have to learn how to code in Laravel. Spark just quickstarts you in building a SaaS application. Node.js is required if you would like to use Laravel Elixir for compiling assets.

ejdelmonico's avatar

My friend...relax..take a long breathe. Now, the composer.json file pulls in dependencies and so does the package.json. However, the package.json packages are pulled in using NPM which runs on Nodejs. It installs all of those package dependencies in a node_modules folder. Hence, all of those folders. OOP uses a bunch of small folders and files because you have MV* which organizes everything and the SOLID principle. Relax and keep going. It will work for you!

Braunson's avatar

@Napéti

Learning Laravel alone can be overwhelming weather your a seasoned vet or a newbie to the framework. One thing I suggest first is to learn some basic OOP principles and get your head wrapped around it before you dig into Laravel or Spark.

Note: The NodeJS node_modules folder is just a container for a bunch of utilities that are used. You won't have to edit anything in here so don't worry about it :)

Start here first.

Object-Oriented Bootcamp (<2 hours): https://laracasts.com/series/object-oriented-bootcamp-in-php

Next learn the fundamentals of Laravel 5

Laravel 5 Fundamentals (~5.7 hours):

This series will help you get acquainted and setup with basic Laravel. Once you've run through this series, it's time to learn Spark!

Time to take on Spark!

Laravel Spark (40 minutes): https://laracasts.com/series/laravel-spark

Follow those series in that order, then if you are stuck, come on back to the forums :) The framework and API documentation can be enormously helpful to learn how things work behind the scenes so don't be afraid to take a look in there too!

Documentation

3 likes
fegd's avatar

"Am I too noob for this?"

Yes.

1 like

Please or to participate in this conversation.