-
Notifications
You must be signed in to change notification settings - Fork 19
Installation
Dave Stewart edited this page Aug 1, 2017
·
19 revisions
To install the package, run the following from your site's root directory:
composer require davestewart/sketchpad
Once installed, you'll need to decide whether you want to run Sketchpad in every environment, or only in production.
-
Open `config/app.php` and add the following line at the end of the `providers` section:
davestewart\sketchpad\SketchpadServiceProvider::class
-
Open `app/Providers/AppServiceProvider.php` and add the following to the `register()` method:
if ($this->app->environment() !== 'production') { if (class_exists('\davestewart\sketchpad\SketchpadServiceProvider')) { $this->app->register(\davestewart\sketchpad\SketchpadServiceProvider::class); } }
When finished, load your site and visit the top-level URL sketchpad/, i.e.:
http://yoursite.dev/sketchpad/
The Sketchpad Setup page should load, and you will be able to configure paths, after which the application should install.
If you get any errors, the installer will attempt to help you through them.