Mailer - Installation
Add Service Provider
- Add the ServiceProvider (
Yadda\Enso\EnsoMailerServiceProvider::class) for this module to youconfig/app.php; - Publish new files
php artisan vendor:publish - Run migrations
php artisan migrate
Update Webpack config
You'll need to add a line to your webpack.mix.js to build mailer css:
.sass('resources/assets/sass/enso-mailer.scss', 'public/css/enso-mail.css')
Register Audience Form component
Add AudienceForm definition to your app's enso.js file resources/assets/js/enso.js:
import AudienceForm from "./vendor/enso/crud/components/mailer/AudienceForm.vue";
Vue.component("audience-form", AudienceForm);
And finally
Re-run npm run dev
Notes
See the Modules - General Information page for best practices and suggestions on how to extend and override default behaviour.
See the Mailer page for general override opportunities and proceedures.
See the Audiences page for instructions on adding your own relations and fields to query, and adding different types of query.