Skip to content

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.

To run in development and production

  • Open `config/app.php` and add the following line at the end of the `providers` section:

    davestewart\sketchpad\SketchpadServiceProvider::class
    

To run in development only

  • 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.

Clone this wiki locally