v0.9.4
This commit is contained in:
commit
217b733bf2
286 files changed
+19180
No files matched your search
@@ -0,0 +1,435 @@
|
||||
<?php
|
||||
|
||||
use IriksIT\Manager\Modules;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
| The URL prefix and the route name prefix of the manager.
|
||||
*/
|
||||
'path' => env('MANAGER_PATH', 'manager'),
|
||||
|
||||
/*
|
||||
| Middleware around every manager route. Authentication of the manager itself
|
||||
| is left to the host app: use the guard it already has.
|
||||
*/
|
||||
'middleware' => ['web', 'manager.auth'],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Two-step login (ADR-0016)
|
||||
|--------------------------------------------------------------------------
|
||||
| An account with a second step (a code from an authenticator app) answers it once per session, whichever login it came in by. A super admin has to have one
|
||||
| (`super_admins`), so has every account of a group that says "requires two-step login"; anyone else may switch it on for themselves. An account that has to have
|
||||
| one gets `grace_days` from the first time it is seen so; after that it reaches nothing but the screen to set it up. These are not on the settings screen on
|
||||
| purpose: whoever can change settings must not be able to loosen this. `enabled` off switches the whole feature off.
|
||||
*/
|
||||
'two_factor' => ['enabled' => env('MANAGER_TWO_FACTOR', true), 'super_admins' => env('MANAGER_TWO_FACTOR_SUPER_ADMINS', true), 'grace_days' => (int) env('MANAGER_TWO_FACTOR_GRACE_DAYS', 30), 'issuer' => null],
|
||||
|
||||
/*
|
||||
| The screens. `package`: the manager brings its own (a Vue app, built, served by the package; it also gives a login and
|
||||
| a profile when the app has none). `none`: only the JSON API, for an app that builds its own screens.
|
||||
*/
|
||||
'ui' => env('MANAGER_UI', 'package'),
|
||||
|
||||
/*
|
||||
| The name in the menu and on the login screen.
|
||||
*/
|
||||
'name' => env('MANAGER_NAME'),
|
||||
|
||||
/*
|
||||
| Looks. `theme` is what everyone gets until they choose; `user_themes` lets each account pick its own (profile).
|
||||
| A theme is a set of colours, a radius and fonts: built in are `dark` and `light`; the site's own live as JSON files in
|
||||
| `themes_path` (make one with `php artisan manager:make-theme`) or here in `themes`, by key.
|
||||
*/
|
||||
'theme' => env('MANAGER_THEME', 'dark'),
|
||||
'user_themes' => (bool) env('MANAGER_USER_THEMES', true),
|
||||
'themes_path' => null, // default: resources/manager-themes of the app
|
||||
'themes' => [],
|
||||
|
||||
/*
|
||||
| The Eloquent model of the people who log in. Must use IriksIT\Manager\Concerns\HasManagerAccess.
|
||||
*/
|
||||
'user_model' => env('MANAGER_USER_MODEL', 'App\\Models\\User'),
|
||||
|
||||
/*
|
||||
| The modules this manager knows. Add your own class here to give a site its own part.
|
||||
*/
|
||||
'available' => [
|
||||
Modules\Users\UsersModule::class,
|
||||
Modules\Media\MediaModule::class,
|
||||
Modules\Pages\PagesModule::class,
|
||||
Modules\Posts\PostsModule::class,
|
||||
Modules\Reviews\ReviewsModule::class,
|
||||
Modules\Audit\AuditModule::class,
|
||||
Modules\Statistics\StatisticsModule::class,
|
||||
Modules\Resources\ResourcesModule::class,
|
||||
Modules\Revisions\RevisionsModule::class,
|
||||
Modules\Settings\SettingsModule::class,
|
||||
Modules\Leads\LeadsModule::class,
|
||||
Modules\Updates\UpdatesModule::class,
|
||||
Modules\Sharing\SharingModule::class,
|
||||
Modules\Costs\CostsModule::class,
|
||||
Modules\Numbers\NumbersModule::class,
|
||||
],
|
||||
|
||||
/*
|
||||
| Switch a part on or off per site. A key left out falls back to the default of the
|
||||
| module: users and media are on, everything else is off. A module that is off has no
|
||||
| routes, no tables (its migrations are not loaded), no menu item and no permissions.
|
||||
*/
|
||||
'modules' => [
|
||||
'users' => true,
|
||||
'media' => true,
|
||||
'pages' => env('MANAGER_PAGES', true),
|
||||
'posts' => env('MANAGER_POSTS', true),
|
||||
'reviews' => env('MANAGER_REVIEWS', false),
|
||||
'audit' => env('MANAGER_AUDIT', false),
|
||||
'statistics' => env('MANAGER_STATISTICS', false),
|
||||
'resources' => true,
|
||||
'revisions' => env('MANAGER_REVISIONS', true),
|
||||
'updates' => env('MANAGER_UPDATES', false),
|
||||
'sharing' => env('MANAGER_SHARING', false),
|
||||
'costs' => env('MANAGER_COSTS', false),
|
||||
'numbers' => env('MANAGER_NUMBERS', false),
|
||||
'settings' => true,
|
||||
'leads' => env('MANAGER_LEADS', false),
|
||||
],
|
||||
|
||||
/*
|
||||
| Features of the site that the settings screen switches on and off: one switch that the manager and the public site both follow.
|
||||
| 'services' => ['label' => 'Services', 'hint' => 'The page with what you offer', 'enabled' => true, 'env' => 'SITE_SERVICES']
|
||||
| In the manager: a `resources` entry with `'feature' => 'services'` is left out while the feature is off. In the site: `Features::on('services')`,
|
||||
| the route middleware `manager.feature:services` (404 while off) and `@feature('services') … @endfeature`. Off hides, it never deletes data.
|
||||
*/
|
||||
'features' => [],
|
||||
|
||||
/*
|
||||
| The media library. Files live on a Laravel filesystem disk; each media row remembers
|
||||
| its own disk, so a file stays where it was uploaded when `disk` changes later.
|
||||
*/
|
||||
'media' => [
|
||||
'disk' => env('MANAGER_MEDIA_DISK', 'public'),
|
||||
|
||||
// How much room the library has in total, in GB. An upload that would go over it is refused.
|
||||
'max_total_gb' => (float) env('MANAGER_MEDIA_MAX_TOTAL_GB', 15),
|
||||
|
||||
// Largest single upload in MB. PHP and the web server must allow it too
|
||||
// (upload_max_filesize, post_max_size, client_max_body_size).
|
||||
'max_file_mb' => (int) env('MANAGER_MEDIA_MAX_FILE_MB', 40),
|
||||
|
||||
// File extensions the library accepts. SVG is deliberately missing: it can carry scripts.
|
||||
'extensions' => ['jpg', 'jpeg', 'png', 'webp', 'gif', 'pdf', 'mp4', 'webm'],
|
||||
|
||||
// The disk `iriksit` keeps files at the IriksIT API (set `disk` to `iriksit`). The account needs the permissions
|
||||
// `storage.read` and `storage.write`. Leave this empty for any other disk.
|
||||
'iriksit' => [
|
||||
'url' => env('MANAGER_IRIKSIT_URL'),
|
||||
'email' => env('MANAGER_IRIKSIT_EMAIL'),
|
||||
'password' => env('MANAGER_IRIKSIT_PASSWORD'),
|
||||
'timeout' => 300,
|
||||
],
|
||||
|
||||
// Visitors loading files per minute per address (the `media-files` rate limiter).
|
||||
'per_minute' => 600,
|
||||
],
|
||||
|
||||
/*
|
||||
| Posts. `categories` are always offered in the post form, next to the ones in use and the
|
||||
| ones made by hand; a site can offer more through PostLabels::suggestCategories().
|
||||
*/
|
||||
'posts' => [
|
||||
'categories' => ['General'],
|
||||
],
|
||||
|
||||
/*
|
||||
| Markdown in posts: hosts besides APP_URL whose links do not open in a new window.
|
||||
*/
|
||||
'markdown' => [
|
||||
'internal_hosts' => [],
|
||||
],
|
||||
|
||||
/*
|
||||
| The audit log and the bans (module `audit`).
|
||||
*/
|
||||
'audit' => [
|
||||
// Addresses that are never banned, by hand or by themselves: your own, so a slip or a rule
|
||||
// that is too strict never locks you out. Comma-separated in MANAGER_NEVER_BAN.
|
||||
'never_ban' => array_values(array_filter(array_map('trim', explode(',', (string) env('MANAGER_NEVER_BAN', ''))))),
|
||||
|
||||
// The longest the log may be kept, in days. Set it to what your privacy policy promises.
|
||||
'max_keep_days' => (int) env('MANAGER_AUDIT_MAX_KEEP_DAYS', 90),
|
||||
|
||||
// Let a ban "for the whole site" work: the middleware then runs on every request of the app.
|
||||
'whole_site_bans' => (bool) env('MANAGER_AUDIT_WHOLE_SITE_BANS', false),
|
||||
],
|
||||
|
||||
/*
|
||||
| The visitor statistics (module `statistics`).
|
||||
*/
|
||||
'statistics' => [
|
||||
// The addresses of the public site that count as a page. Anything else is ignored, so
|
||||
// nobody can fill the statistics with made-up addresses. Posts and other kinds of pages
|
||||
// come from `posts_path` or a resolver: app(CountedPages::class)->register(fn ($path) => ...).
|
||||
'pages' => ['/'],
|
||||
|
||||
// The address under which the posts live (`/blog` for `/blog/my-post`); null: posts are not counted.
|
||||
'posts_path' => null,
|
||||
|
||||
// What a page is called on the screens when it has no title of its own (a post has): `'/about' => 'About us'`. A kind of page with many
|
||||
// of them (services, projects) is named by a resolver: app(PageNames::class)->register(fn ($path) => ...). The address is the fallback.
|
||||
'names' => [],
|
||||
|
||||
// Where the public pages report a view (POST {pulse_path}/view and {pulse_path}/leave).
|
||||
'pulse_path' => 'pulse',
|
||||
|
||||
// Reports per minute per address.
|
||||
'per_minute' => 120,
|
||||
|
||||
// The request header with the country code of the visitor, e.g. CF-IPCountry behind Cloudflare. Null: no country.
|
||||
'country_header' => env('MANAGER_STATISTICS_COUNTRY_HEADER'),
|
||||
|
||||
// Count the pages served to programs (search engines, crawlers) by adding a middleware to the `web` group.
|
||||
'count_bots' => (bool) env('MANAGER_STATISTICS_COUNT_BOTS', true),
|
||||
],
|
||||
|
||||
/*
|
||||
| Pages with fields (module `pages`): per slug a title and the fields the screens make a form of, and the
|
||||
| public site reads with `IriksIT\Manager\Models\Page::contentFor('home')`:
|
||||
| 'definitions' => ['home' => ['title' => 'Home', 'fields' => [
|
||||
| 'hero_title' => ['label' => 'Title on the photo', 'type' => 'text'],
|
||||
| 'intro' => ['label' => 'Story', 'type' => 'markdown'],
|
||||
| 'photo' => ['label' => 'Photo', 'type' => 'media'],
|
||||
| ]]].
|
||||
| Types: text, textarea, markdown, lines, media, url, number, date, toggle, select (with `options`).
|
||||
*/
|
||||
'pages' => ['definitions' => [], 'checks' => []],
|
||||
|
||||
/*
|
||||
| Lists the site manages without code of its own: a form, a list, permissions (`<key>.view`, `<key>.manage`)
|
||||
| and a menu item for each. `model` keeps the records in a model of the site (the field keys are its
|
||||
| attributes); without it they go into the package's own table. Fields: see `pages`.
|
||||
| A `hint` is the line under the item on the simple start page.
|
||||
| 'services' => ['label' => 'Services', 'hint' => 'What you offer', 'singular' => 'Service', 'model' => App\Models\Service::class,
|
||||
| 'columns' => ['name', 'price'], 'order' => ['position', 'asc'], 'fields' => ['name' => ['type' => 'text', 'required' => true], ...]]
|
||||
*/
|
||||
'resources' => [],
|
||||
|
||||
/*
|
||||
| A bundle of the site's own screens: JavaScript modules (a path of the site, or https) the manager loads next to its own,
|
||||
| after it has started. They add screens with `IriksManager.register('^/leads$', Component, { data: true })`, and may
|
||||
| `import { ref } from 'vue'` when the build leaves `vue` external. See README, "Your own screens".
|
||||
*/
|
||||
'extensions' => [],
|
||||
|
||||
/*
|
||||
| The history of posts and pages (module `revisions`): `keep` states per record, more `types` of the site's own
|
||||
| (['services' => ['model' => App\Models\Service::class, 'view' => 'services.view', 'restore' => 'services.manage']]),
|
||||
| and `skip` for model classes that should not have one.
|
||||
*/
|
||||
'revisions' => ['keep' => 50, 'types' => [], 'skip' => []],
|
||||
|
||||
/*
|
||||
| More a login asks for. `checks`: classes that implement IriksIT\Manager\Contracts\LoginCheck (extend
|
||||
| IriksIT\Manager\Support\Login\BaseLoginCheck): a field of the form, something to check before the password is
|
||||
| tried (a captcha) or after it was right (a second factor). Cloudflare Turnstile is built in and turns itself on
|
||||
| when both of its keys are set. These apply to the login of the manager's own screens.
|
||||
*/
|
||||
'login' => [
|
||||
'checks' => [],
|
||||
'turnstile' => ['site_key' => env('MANAGER_TURNSTILE_SITE_KEY'), 'secret' => env('MANAGER_TURNSTILE_SECRET')],
|
||||
],
|
||||
|
||||
/*
|
||||
| Who may do what. `groups` (default): the groups of the package. A site that has roles of its own can say it itself:
|
||||
| `host` takes the permissions only from the site, `merge` adds them to what the groups give. The site's side is a
|
||||
| `resolver` class (IriksIT\Manager\Contracts\PermissionResolver), or, simpler, `roles` per role name (`*` is
|
||||
| everything) read from the attribute `role_attribute` of the account (a string, a list or a relation with a `name`).
|
||||
| 'roles' => ['editor' => ['posts.view', 'posts.write'], 'owner' => ['*']]. A super admin may always do everything.
|
||||
*/
|
||||
'permissions' => ['mode' => env('MANAGER_PERMISSIONS', 'groups'), 'resolver' => null, 'roles' => [], 'role_attribute' => 'role'],
|
||||
|
||||
/*
|
||||
| The menu. `items` changes what a module gives, by the route name without the prefix:
|
||||
| 'posts.index' => ['order' => 10, 'section' => 'Content', 'icon' => 'file', 'simple' => true, 'hidden' => false].
|
||||
| `links` adds items of the site's own: ['label' => 'Leads', 'url' => '/manager/leads', 'permission' => null,
|
||||
| 'section' => ..., 'icon' => ..., 'order' => ..., 'simple' => ..., 'new_tab' => ...].
|
||||
| Icons: home, file, image, users, group, chart, shield, star, tag, link, cog.
|
||||
*/
|
||||
'menu' => ['items' => [], 'links' => []],
|
||||
|
||||
/*
|
||||
| A simple face of the manager next to the full one. With this on, the permissions `manager.full` and
|
||||
| `manager.switch` exist: an account with the first (or a super admin) gets everything; one with the
|
||||
| second starts simple and may switch; all others always get the simple face, which shows only the
|
||||
| menu items marked `simple`. Off: everyone sees the whole menu.
|
||||
*/
|
||||
'simple_view' => (bool) env('MANAGER_SIMPLE_VIEW', false),
|
||||
|
||||
/*
|
||||
| What the simple start screen shows under its big buttons: `help` is a way to ask for help, a name and a link (for example a WhatsApp
|
||||
| link), and `site_link` the address of the site ("View the site"; null leaves it out).
|
||||
*/
|
||||
'simple' => ['help' => ['name' => env('MANAGER_HELP_NAME'), 'link' => env('MANAGER_HELP_LINK')], 'site_link' => '/'],
|
||||
|
||||
/*
|
||||
| The pictures of the tour: a folder with `welcome`, `point`, `calm`, `write`, `photos`, `pages`, `undo`, `oops`, `party`, `profile` and
|
||||
| `peek` (`.webp` or `.png`). Null: the set of the package. A picture that is missing is replaced by a paw.
|
||||
*/
|
||||
'mascot' => ['path' => null],
|
||||
|
||||
/*
|
||||
| The settings screen (module `settings`, whole face of the manager only). Changes are kept in the database and in one compiled file
|
||||
| and work at once. `write_env` also writes the changed value into .env, when that file may be written (it is left alone otherwise).
|
||||
| `definitions` adds settings of the site's own, by the config path they override:
|
||||
| 'site.contact_form' => ['label' => 'Contact form', 'type' => 'toggle', 'group' => 'Site', 'env' => 'CONTACT_FORM'].
|
||||
| Types: toggle, text, url, number, select (with `options`), secret (never shown again). A definition with `sensitive` => true needs the
|
||||
| right `settings.secrets` and the password of whoever saves it. `checks` adds a "try it" button to a group of settings:
|
||||
| `'Group name' => SomeClass::class`, invokable, returns what worked and throws when it did not.
|
||||
*/
|
||||
'settings' => ['write_env' => (bool) env('MANAGER_SETTINGS_WRITE_ENV', false), 'definitions' => [], 'checks' => []],
|
||||
|
||||
/*
|
||||
| Sharing posts on social networks (module `sharing`). `platforms` is name => class of a `Contracts\Sharer`; LinkedIn comes with the
|
||||
| package, a site adds its own. `post_url` says where a post lives on the site (`{slug}` is its address), `live` is whether a
|
||||
| share is sent for real (off: a dry run, nothing leaves the site). The keys of the app of a platform are settings (secrets).
|
||||
*/
|
||||
'sharing' => [
|
||||
'platforms' => ['linkedin' => Modules\Sharing\LinkedInSharer::class],
|
||||
'post_url' => env('MANAGER_SHARING_POST_URL'),
|
||||
'live' => (bool) env('MANAGER_SHARING_LIVE', false),
|
||||
'linkedin' => [
|
||||
'client_id' => env('MANAGER_LINKEDIN_CLIENT_ID'),
|
||||
'client_secret' => env('MANAGER_LINKEDIN_CLIENT_SECRET'),
|
||||
'auth_url' => 'https://www.linkedin.com/oauth/v2',
|
||||
'userinfo_url' => 'https://api.linkedin.com/v2/userinfo',
|
||||
'base_url' => 'https://api.linkedin.com/rest',
|
||||
'version' => '202511',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
| Who draws the pages of the site (switchable on the settings screen, "Who shows the website"):
|
||||
| 'site' the site draws them itself with the blocks (Inertia + Vue or Blade). No public route is added. The default.
|
||||
| 'package' the package draws every page that has blocks at `/{slug}` (the home page at `/`), in the Blade view `layout`, as a
|
||||
| fallback route: a route of the site always wins and what is not a page stays a 404. `middleware` is the group it runs in.
|
||||
| 'headless' nothing is drawn; the pages are JSON for a frontend elsewhere (the same as `blocks.api.enabled`).
|
||||
*/
|
||||
'frontend' => ['mode' => env('MANAGER_FRONTEND', 'site'), 'layout' => 'manager::public.layout', 'middleware' => ['web']],
|
||||
|
||||
/*
|
||||
| The blocks a page is built from (see docs/design/page-builder.md). `types` adds block types of the site (or replaces a shipped
|
||||
| one by its key): 'map' => ['label' => 'Map', 'fields' => [...], 'style' => ['width']]. `tokens` sets the choices of a style
|
||||
| option: 'background' => ['none' => 'None', 'sand' => 'Sand']. `max` is the most blocks on a page. A page with a definition holds
|
||||
| blocks when its definition says `'blocks' => true` (or a list of types); `free_pages` does the same for pages without one.
|
||||
*/
|
||||
'blocks' => [
|
||||
'types' => [], 'tokens' => [], 'max' => 100, 'free_pages' => false,
|
||||
// The same blocks as JSON for a frontend on another server: GET {path}/pages/{slug} and, when `schema` is on, GET {path}/blocks/schema.
|
||||
// The live preview in the editor: the public page of the site shown in a frame, with the blocks that are not saved yet. `url` is the
|
||||
// address of a page (`/{slug}`, with the home page as `/`; or an invokable class that gets the slug), `ttl` how long a preview is kept (seconds).
|
||||
'preview' => ['enabled' => env('MANAGER_BLOCKS_PREVIEW', false), 'url' => null, 'home' => 'home', 'ttl' => 600, 'max_kb' => 512],
|
||||
'api' => ['enabled' => env('MANAGER_BLOCKS_API', false), 'path' => 'api/manager', 'middleware' => ['throttle:60,1'], 'schema' => true],
|
||||
],
|
||||
|
||||
/*
|
||||
| What changed on the site (module `updates`): the releases of a CHANGELOG.md, newest first. `changelog` is the file (default: the
|
||||
| CHANGELOG.md in the root of the site) and `limit` how many releases the screen shows.
|
||||
*/
|
||||
'updates' => ['changelog' => env('MANAGER_UPDATES_CHANGELOG'), 'limit' => 20],
|
||||
|
||||
/*
|
||||
| What the work on the site has cost (module `costs`): the table of the site's TOKENS.md (`ledger`, default the TOKENS.md in the root of the
|
||||
| site) with the tokens of each piece of work in euros. A row is priced once and the price is kept. Who prices it: `pricer` (an invokable
|
||||
| class of the site that gets the rows to price and returns ['row-0' => ['usd' => ..., 'eur' => ..., 'usd_per_eur' => ...]]), else the IriksIT
|
||||
| API when `media.iriksit` is set (switch it off with `use_api`; the account needs `ai.pricing`), else the fixed `rates` (US dollars per
|
||||
| million tokens per model: ['model' => ['input' => ..., 'cache_write' => ..., 'cache_read' => ..., 'output' => ...]]) with `usd_to_eur`.
|
||||
| `hourly_rate` turns the hours of a row into euros, `hosting` is a yearly amount from a day on, `discount` a share of the work and the AI
|
||||
| costs before a day. `assign_open_to_newest` puts a row without a release in the newest release (right on a site where everything that
|
||||
| is deployed is released).
|
||||
*/
|
||||
'costs' => [
|
||||
'ledger' => env('MANAGER_COSTS_LEDGER'),
|
||||
'hourly_rate' => (float) env('MANAGER_COSTS_HOURLY_RATE', 0),
|
||||
'hosting' => ['per_year' => 0, 'from' => null],
|
||||
'discount' => ['percent' => 0, 'until' => null],
|
||||
'pricer' => null,
|
||||
'use_api' => true,
|
||||
'rates' => [],
|
||||
'usd_to_eur' => null,
|
||||
'assign_open_to_newest' => false,
|
||||
],
|
||||
|
||||
/*
|
||||
| The requests of visitors (module `leads`): how they are screened and kept. Every rule is a setting; nothing is ever refused on score,
|
||||
| the worst that happens to a real request is the folder "other". `kinds` names the forms of the site (kind => label), `notify` is where a
|
||||
| real request is mailed to (a setting on the settings screen), `confirm` mails the visitor a short confirmation, `source` is an invokable
|
||||
| class that tells where a visit came from (returns ['channel' => ..., 'source' => ...]), `language` (nl, en or null) marks text in another
|
||||
| language as spam, `country_code` is the home country for phone numbers.
|
||||
*/
|
||||
'leads' => [
|
||||
'kinds' => ['callback' => 'Callback request', 'question' => 'Question', 'quote' => 'Quote request', 'message' => 'Message'],
|
||||
'notify' => env('MANAGER_LEADS_NOTIFY'),
|
||||
'confirm' => false,
|
||||
'source' => null,
|
||||
'language' => null,
|
||||
'country_code' => '31',
|
||||
// The public forms (`POST /{path}/{form}`, see Modules\Leads\LeadFormController): a form is a name with the kind it makes and the fields it
|
||||
// requires (name, phone, email, contact = one box for either, message, location). `questions` and `moments` are what a visitor may tap.
|
||||
// `thanks` is where a visitor lands after sending (null: back to the page). A honeypot field and Turnstile (when its keys are set) keep programs out.
|
||||
'form' => [
|
||||
'path' => 'requests',
|
||||
'honeypot' => 'website',
|
||||
'turnstile' => true,
|
||||
'thanks' => null,
|
||||
'per_hour' => 6,
|
||||
'per_hour_all' => 120,
|
||||
'forms' => [
|
||||
'callback' => ['kind' => 'callback', 'require' => ['name', 'phone']],
|
||||
'question' => ['kind' => 'question', 'require' => ['name', 'contact', 'message']],
|
||||
'quote' => ['kind' => 'quote', 'require' => ['name', 'phone', 'location']],
|
||||
'contact' => ['kind' => 'message', 'require' => ['name', 'email', 'subject', 'message']],
|
||||
],
|
||||
'questions' => [],
|
||||
'moments' => [],
|
||||
],
|
||||
'min_seconds' => 3,
|
||||
'max_hours' => 24,
|
||||
'spam_from' => 5,
|
||||
'other_from' => 3,
|
||||
'keep_days' => 365,
|
||||
'keep_spam_days' => 30,
|
||||
'acquisition_words' => [
|
||||
'seo', 'backlinks', 'backlink', 'linkbuilding', 'lead generation', 'more leads', 'more customers', 'web design', 'webdesign', 'web development',
|
||||
'digital marketing', 'online marketing', 'marketing agency', 'social media management', 'free analysis', 'our offer', 'we offer', 'partnership',
|
||||
'guest post', 'sponsored', 'crypto', 'investment', 'loan', 'traffic', 'ranking',
|
||||
],
|
||||
'throwaway_domains' => [
|
||||
'mailinator.com', 'guerrillamail.com', 'guerrillamail.net', 'sharklasers.com', '10minutemail.com', 'tempmail.com', 'temp-mail.org', 'yopmail.com',
|
||||
'trashmail.com', 'getnada.com', 'dispostable.com', 'maildrop.cc', 'mailnesia.com', 'throwawaymail.com', 'fakeinbox.com', 'mohmal.com', 'emailondeck.com',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
| Prefix for the tables of the package.
|
||||
*/
|
||||
'table_prefix' => 'manager_',
|
||||
|
||||
/*
|
||||
| A table with a name of its own, by short name (`posts`, `pages`, `media`, ...): wins over the prefix.
|
||||
| Set it before the first migrate; the package never renames a table that exists.
|
||||
*/
|
||||
'tables' => [],
|
||||
|
||||
/*
|
||||
| Prefix of the route names (`manager.posts.index`). Change it when the site already has `manager.*`
|
||||
| routes; menu items and screens follow by themselves.
|
||||
*/
|
||||
'route_name' => 'manager',
|
||||
|
||||
/*
|
||||
| Where `php artisan manager:import <posts|pages|reviews>` reads from, so it needs no options:
|
||||
| 'posts' => ['table' => 'articles', 'connection' => null, 'map' => ['title' => 'headline']].
|
||||
*/
|
||||
'import' => [],
|
||||
];
|
||||
Reference in new issue
Block a user