composer require dazzle-app/audience
. (Auto-Discovery will handle ServiceProvider and Facades)- Publish config with
php artisan vendor:publish
and choose Dazzle-App/Audience in the list. - Update Config that should be in
/config/dazzle-audience.php
php artisan migrate
- Add the form to a view with
@audienceForm
- Promote your landing page (and this package if you feel like it).
This is mostly if you are interested in contributing, this is a suggested way to set up your development environment.
I generally like to have the project installed locally, and use Composer to reference my local copy of the package in a plain Laravel application. To do this you would install a Laravel application, then add the following to your composer.json file in the application folder:
"require": {
// Truncated to relevant stuff
"dazzle-app/audience": "*"
},
"repositories": [
{
"type": "path",
// you can update this to the path to the package on your machine.
"url": "./../packages/audience"
}
],
Once you have added/updated the above. Run composer install
in the application folder in a terminal.
This repo is intended to be fully tested. If you have the repo installed locally, as in the development installation instructions above, navigate to the folder on your machine, and run composer test
or composer test-coverage
to run the entire test suite.
Note: run tests in the package folder, not from the application root, and not in the
vendor
directory either.