Skip to content

devuri/laravel-spark-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Ref: Spark Installer.

Laravel Spark Installer

install laravel spark

# 1: Laravel Installer.

Before getting started, make sure you have the laravel/installer package globally installed using Composer.

composer global require laravel/installer

# 2: Add Laravel Installer globally

export PATH="~/.config/composer/vendor/bin:$PATH"

# 3: Spark installer

clone the laravel/spark-installer repository from GitHub into any location on your machine.

git clone https://github.com/laravel/spark-installer.git

# 4: Spark installer Dependencies

Once you have cloned the installer, be sure to run the composer install command within the cloned directory so the installer's dependencies will be installed.

composer install

# 5: Add Spark to the $PATH variable

Next, make sure the spark-installer directory is added to your systems $PATH variable, so that your machine will be able to locate the spark executable when you issue Spark commands.

export PATH=$PATH:$PWD 

# 6: Try Laravel Spark Installer

You can test this by typing the spark in the command. This should give you back some information like the usage information version number etc

spark

# 7: Registering Your API Token

Now that you have the Spark installer, you need to register your Spark API token with the installer. You may create an API token from the API settings dashboard. Once you have created a token, register it with the installer using the register command:

spark register token-value

# 8: Check Token

If you would like to view the currently registered token, you may use the token command:

spark token

# 9: Creating Spark Project

Once you have installed the Spark installer and registered your API token, you may create new Spark projects using the new command: This command will create a new Laravel project in a directory matching the given project-name. Spark will then be automatically installed into the project and configured.

spark new project-name

# 10: Migrate New Project Database

Once the new Spark project has been created, you will need to migrate your new project's database using the php artisan migrate Artisan command.

php artisan migrate

About

install laravel spark

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published