-
Notifications
You must be signed in to change notification settings - Fork 19
Setup
The setup page will load automatically the first time you try to use Sketchpad.

Sketchpad – and its subfolders – can be installed anywhere in your project, and you have the choice of 4 editable presets:
Sketchpad functions separately from your app; great for development
+- yourapp.dev
+- app
+- ...
+- sketchpad
| +- assets
| +- controllers
| +- views
+- ...
This is the recommended setup if you just want a bolt-on development environment, because it keeps everything in a single subfolder, making it easier to ignore from version control.
Integrates Sketchpad into your app; code lives inside Laravel subfolders
+- yourapp.dev
+- app
| +- Http
| | +- Controllers
| | +- Sketchpad
| +- ...
+- resources
| +- views
| | +- sketchpad
| +- ...
+- public
| +- vendor
| | +- sketchpad
| +- ...
+- ...
Sketchpad becomes your app; useful if you want a quick front-end UI
+- yourapp.dev
+- app
| +- Http
| | +- Controllers
| +- ...
+- resources
| +- views
| +- ...
+- public
| +- assets
| +- ...
+- ...
Full control over the installation; choose your own folders, paths, routes, etc.
+- yourapp.dev
+- app
+- custom?
| +- src?
| | +- Controllers?
| +- resources?
| +- assets?
| +- views?
+- ...
If you choose to install your controllers folder outside of your existing app/ folder, Composer will need to know so it can load the classes.
This is fairly simple; if you choose a base directory of sketchpad and a namespace prefix of Sketchpad, the PSR-4 mapping will be saved as so:
"psr-4": {
"Sketchpad\\": "sketchpad/"
}
If you choose to install Sketchpad within your existing application, there'll be no change to your composer.json.