Laravel Spark

AJA • April 15, 2020

laravel

Spark provides the perfect starting point for your next big idea. Forget all the boilerplate and focus on what matters: your application.

Requirements

Install Laragon according to this post.

Installation

Use composer to install Spark project or whatever name you choose.

cd c:\laragon\www\
composer create-project --prefer-dist laravel/laravel spark

Next, add the following repository to your composer.json file:

"repositories": [
    {
        "type": "composer",
        "url": "https://spark-satis.laravel.com"
    }
],

You should also add the following dependencies to your composer.json file's require section.

"laravel/spark-aurelius": "~9.0",
"laravel/ui": "^2.0",

Run composer update.

Add the following service providers to your app.php configuration file.

Laravel\Spark\Providers\SparkServiceProvider::class,
Laravel\Cashier\CashierServiceProvider::class,

Next, run the spark:install --force command.

php artisan spark:install --force

Once Spark is installed, add the following provider to your app.php configuration file.

App\Providers\SparkServiceProvider::class,

Create a mysql database spark or whatever name you choose with Phpmyadmin.

Change database mysql parameters in c:\laragon\www\spark\.env file.

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=spark
DB_USERNAME=root
DB_PASSWORD=password

Finally, you are ready to run the npm install, npm run dev, and php artisan migrate commands. Once these commands have completed, you are ready to enjoy Spark!

Post-installation

You should also configure your e-mail address as a "developer" so that you have access to the Kiosk. To do this, add your e-mail address to the $developers property in the App\Providers\SparkServiceProvider.

 protected $developers = [
        'e-mail@e-mail',
    ];