[WIP] Setup of skeleton
This commit is contained in:
28
config/authentication-log.php
Normal file
28
config/authentication-log.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Notify New Device
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you define whether to receive notifications when logging from a new device.
|
||||
|
|
||||
*/
|
||||
|
||||
'notify' => env('AUTHENTICATION_LOG_NOTIFY', true),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Old Logs Clear
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When the clean-command is executed, all authentication logs older than
|
||||
| the number of days specified here will be deleted.
|
||||
|
|
||||
*/
|
||||
|
||||
'older' => 365,
|
||||
|
||||
];
|
||||
12
config/backup-shield.php
Normal file
12
config/backup-shield.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'password' => env('APP_KEY'),
|
||||
'encryption' => \Olssonm\BackupShield\Encryption::ENCRYPTION_DEFAULT
|
||||
|
||||
// Available encryption methods:
|
||||
// \Olssonm\BackupShield\Encryption::ENCRYPTION_DEFAULT (PHP < 7.2: PKWARE/ZipCrypto, PHP >= 7.2: AES 128)
|
||||
// \Olssonm\BackupShield\Encryption::ENCRYPTION_WINZIP_AES_128 (AES 128)
|
||||
// \Olssonm\BackupShield\Encryption::ENCRYPTION_WINZIP_AES_192 (AES 192)
|
||||
// \Olssonm\BackupShield\Encryption::ENCRYPTION_WINZIP_AES_256 (AES 256)
|
||||
];
|
||||
231
config/backup.php
Normal file
231
config/backup.php
Normal file
@@ -0,0 +1,231 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'backup' => [
|
||||
|
||||
/*
|
||||
* The name of this application. You can use this name to monitor
|
||||
* the backups.
|
||||
*/
|
||||
'name' => env('APP_NAME', 'laravel-backup'),
|
||||
|
||||
'source' => [
|
||||
|
||||
'files' => [
|
||||
|
||||
/*
|
||||
* The list of directories and files that will be included in the backup.
|
||||
*/
|
||||
'include' => [
|
||||
base_path(),
|
||||
],
|
||||
|
||||
/*
|
||||
* These directories and files will be excluded from the backup.
|
||||
*
|
||||
* Directories used by the backup process will automatically be excluded.
|
||||
*/
|
||||
'exclude' => [
|
||||
base_path('vendor'),
|
||||
base_path('node_modules'),
|
||||
],
|
||||
|
||||
/*
|
||||
* Determines if symlinks should be followed.
|
||||
*/
|
||||
'follow_links' => false,
|
||||
],
|
||||
|
||||
/*
|
||||
* The names of the connections to the databases that should be backed up
|
||||
* MySQL, PostgreSQL, SQLite and Mongo databases are supported.
|
||||
*
|
||||
* The content of the database dump may be customized for each connection
|
||||
* by adding a 'dump' key to the connection settings in config/database.php.
|
||||
* E.g.
|
||||
* 'mysql' => [
|
||||
* ...
|
||||
* 'dump' => [
|
||||
* 'excludeTables' => [
|
||||
* 'table_to_exclude_from_backup',
|
||||
* 'another_table_to_exclude'
|
||||
* ]
|
||||
* ],
|
||||
* ],
|
||||
*
|
||||
* If you are using only InnoDB tables on a MySQL server, you can
|
||||
* also supply the useSingleTransaction option to avoid table locking.
|
||||
*
|
||||
* E.g.
|
||||
* 'mysql' => [
|
||||
* ...
|
||||
* 'dump' => [
|
||||
* 'useSingleTransaction' => true,
|
||||
* ],
|
||||
* ],
|
||||
*
|
||||
* For a complete list of available customization options, see https://github.com/spatie/db-dumper
|
||||
*/
|
||||
'databases' => [
|
||||
'mysql',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
* The database dump can be compressed to decrease diskspace usage.
|
||||
*
|
||||
* Out of the box Laravel-backup supplies
|
||||
* Spatie\DbDumper\Compressors\GzipCompressor::class.
|
||||
*
|
||||
* You can also create custom compressor. More info on that here:
|
||||
* https://github.com/spatie/db-dumper#using-compression
|
||||
*
|
||||
* If you do not want any compressor at all, set it to null.
|
||||
*/
|
||||
'database_dump_compressor' => null,
|
||||
|
||||
'destination' => [
|
||||
|
||||
/*
|
||||
* The filename prefix used for the backup zip file.
|
||||
*/
|
||||
'filename_prefix' => '',
|
||||
|
||||
/*
|
||||
* The disk names on which the backups will be stored.
|
||||
*/
|
||||
'disks' => [
|
||||
'local',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
* The directory where the temporary files will be stored.
|
||||
*/
|
||||
'temporary_directory' => storage_path('app/backup-temp'),
|
||||
],
|
||||
|
||||
/*
|
||||
* You can get notified when specific events occur. Out of the box you can use 'mail' and 'slack'.
|
||||
* For Slack you need to install guzzlehttp/guzzle and laravel/slack-notification-channel.
|
||||
*
|
||||
* You can also use your own notification classes, just make sure the class is named after one of
|
||||
* the `Spatie\Backup\Events` classes.
|
||||
*/
|
||||
'notifications' => [
|
||||
|
||||
'notifications' => [
|
||||
\Spatie\Backup\Notifications\Notifications\BackupHasFailed::class => ['mail'],
|
||||
\Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFound::class => ['mail'],
|
||||
\Spatie\Backup\Notifications\Notifications\CleanupHasFailed::class => ['mail'],
|
||||
\Spatie\Backup\Notifications\Notifications\BackupWasSuccessful::class => ['mail'],
|
||||
\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFound::class => ['mail'],
|
||||
\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessful::class => ['mail'],
|
||||
],
|
||||
|
||||
/*
|
||||
* Here you can specify the notifiable to which the notifications should be sent. The default
|
||||
* notifiable will use the variables specified in this config file.
|
||||
*/
|
||||
'notifiable' => \Spatie\Backup\Notifications\Notifiable::class,
|
||||
|
||||
'mail' => [
|
||||
'to' => 'your@example.com',
|
||||
|
||||
'from' => [
|
||||
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
|
||||
'name' => env('MAIL_FROM_NAME', 'Example'),
|
||||
],
|
||||
],
|
||||
|
||||
'slack' => [
|
||||
'webhook_url' => '',
|
||||
|
||||
/*
|
||||
* If this is set to null the default channel of the webhook will be used.
|
||||
*/
|
||||
'channel' => null,
|
||||
|
||||
'username' => null,
|
||||
|
||||
'icon' => null,
|
||||
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
* Here you can specify which backups should be monitored.
|
||||
* If a backup does not meet the specified requirements the
|
||||
* UnHealthyBackupWasFound event will be fired.
|
||||
*/
|
||||
'monitor_backups' => [
|
||||
[
|
||||
'name' => env('APP_NAME', 'laravel-backup'),
|
||||
'disks' => ['local'],
|
||||
'health_checks' => [
|
||||
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1,
|
||||
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000,
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
[
|
||||
'name' => 'name of the second app',
|
||||
'disks' => ['local', 's3'],
|
||||
'health_checks' => [
|
||||
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1,
|
||||
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000,
|
||||
],
|
||||
],
|
||||
*/
|
||||
],
|
||||
|
||||
'cleanup' => [
|
||||
/*
|
||||
* The strategy that will be used to cleanup old backups. The default strategy
|
||||
* will keep all backups for a certain amount of days. After that period only
|
||||
* a daily backup will be kept. After that period only weekly backups will
|
||||
* be kept and so on.
|
||||
*
|
||||
* No matter how you configure it the default strategy will never
|
||||
* delete the newest backup.
|
||||
*/
|
||||
'strategy' => \Spatie\Backup\Tasks\Cleanup\Strategies\DefaultStrategy::class,
|
||||
|
||||
'default_strategy' => [
|
||||
|
||||
/*
|
||||
* The number of days for which backups must be kept.
|
||||
*/
|
||||
'keep_all_backups_for_days' => 7,
|
||||
|
||||
/*
|
||||
* The number of days for which daily backups must be kept.
|
||||
*/
|
||||
'keep_daily_backups_for_days' => 16,
|
||||
|
||||
/*
|
||||
* The number of weeks for which one weekly backup must be kept.
|
||||
*/
|
||||
'keep_weekly_backups_for_weeks' => 8,
|
||||
|
||||
/*
|
||||
* The number of months for which one monthly backup must be kept.
|
||||
*/
|
||||
'keep_monthly_backups_for_months' => 4,
|
||||
|
||||
/*
|
||||
* The number of years for which one yearly backup must be kept.
|
||||
*/
|
||||
'keep_yearly_backups_for_years' => 2,
|
||||
|
||||
/*
|
||||
* After cleaning up the backups remove the oldest backup until
|
||||
* this amount of megabytes has been reached.
|
||||
*/
|
||||
'delete_oldest_backups_when_using_more_megabytes_than' => 5000,
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
@@ -8,7 +8,7 @@ return [
|
||||
'domain' => '',
|
||||
|
||||
// Redirect to this route after login
|
||||
'redirectTo' => 'boilerplate.dashboard',
|
||||
'redirectTo' => 'Shop.Admin.dashboard',
|
||||
|
||||
// Backend locale
|
||||
'locale' => config('app.locale'),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'dashboard' => \Sebastienheyd\Boilerplate\Controllers\DashboardController::class, // Dashboard controller to use
|
||||
'dashboard' => \App\Http\Controllers\Shop\Admin\DashboardController::class, // Dashboard controller to use
|
||||
'providers' => [], // Additional menu items providers
|
||||
];
|
||||
|
||||
@@ -21,15 +21,15 @@ return [
|
||||
'border' => false,
|
||||
'compact' => false,
|
||||
'links' => [
|
||||
'bg' => 'blue',
|
||||
'bg' => 'green',
|
||||
'shadow' => 1,
|
||||
],
|
||||
'brand' => [
|
||||
'bg' => 'gray-dark',
|
||||
'logo' => [
|
||||
'bg' => 'blue',
|
||||
'bg' => 'green',
|
||||
'icon' => '<i class="fa fa-cubes"></i>',
|
||||
'text' => '<strong>BO</strong>ilerplate',
|
||||
'text' => '<strong>O</strong>pen<strong>S</strong>em',
|
||||
'shadow' => 2,
|
||||
],
|
||||
],
|
||||
@@ -40,7 +40,7 @@ return [
|
||||
],
|
||||
'footer' => [
|
||||
'visible' => true,
|
||||
'vendorname' => 'Boilerplate',
|
||||
'vendorname' => 'OpenSem',
|
||||
'vendorlink' => '',
|
||||
],
|
||||
'card' => [
|
||||
|
||||
15
config/charts.php
Normal file
15
config/charts.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default library used in charts.
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value is used as the default chart library used when creating
|
||||
| any chart in the command line. Feel free to modify it or set it up
|
||||
| while creating the chart to ignore this value.
|
||||
|
|
||||
*/
|
||||
'default_library' => 'Chartjs',
|
||||
];
|
||||
90
config/datatables-buttons.php
Normal file
90
config/datatables-buttons.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
* Namespaces used by the generator.
|
||||
*/
|
||||
'namespace' => [
|
||||
/*
|
||||
* Base namespace/directory to create the new file.
|
||||
* This is appended on default Laravel namespace.
|
||||
* Usage: php artisan datatables:make User
|
||||
* Output: App\DataTables\UserDataTable
|
||||
* With Model: App\User (default model)
|
||||
* Export filename: users_timestamp
|
||||
*/
|
||||
'base' => 'DataTables',
|
||||
|
||||
/*
|
||||
* Base namespace/directory where your model's are located.
|
||||
* This is appended on default Laravel namespace.
|
||||
* Usage: php artisan datatables:make Post --model
|
||||
* Output: App\DataTables\PostDataTable
|
||||
* With Model: App\Post
|
||||
* Export filename: posts_timestamp
|
||||
*/
|
||||
'model' => '',
|
||||
],
|
||||
|
||||
/*
|
||||
* Set Custom stub folder
|
||||
*/
|
||||
//'stub' => '/resources/custom_stub',
|
||||
|
||||
/*
|
||||
* PDF generator to be used when converting the table to pdf.
|
||||
* Available generators: excel, snappy
|
||||
* Snappy package: barryvdh/laravel-snappy
|
||||
* Excel package: maatwebsite/excel
|
||||
*/
|
||||
'pdf_generator' => 'snappy',
|
||||
|
||||
/*
|
||||
* Snappy PDF options.
|
||||
*/
|
||||
'snappy' => [
|
||||
'options' => [
|
||||
'no-outline' => true,
|
||||
'margin-left' => '0',
|
||||
'margin-right' => '0',
|
||||
'margin-top' => '10mm',
|
||||
'margin-bottom' => '10mm',
|
||||
],
|
||||
'orientation' => 'landscape',
|
||||
],
|
||||
|
||||
/*
|
||||
* Default html builder parameters.
|
||||
*/
|
||||
'parameters' => [
|
||||
'dom' => 'Bfrtip',
|
||||
'order' => [[0, 'desc']],
|
||||
'buttons' => [
|
||||
'create',
|
||||
'export',
|
||||
'print',
|
||||
'reset',
|
||||
'reload',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
* Generator command default options value.
|
||||
*/
|
||||
'generator' => [
|
||||
/*
|
||||
* Default columns to generate when not set.
|
||||
*/
|
||||
'columns' => 'id,add your columns,created_at,updated_at',
|
||||
|
||||
/*
|
||||
* Default buttons to generate when not set.
|
||||
*/
|
||||
'buttons' => 'create,export,print,reset,reload',
|
||||
|
||||
/*
|
||||
* Default DOM to generate when not set.
|
||||
*/
|
||||
'dom' => 'Bfrtip',
|
||||
],
|
||||
];
|
||||
13
config/datatables-fractal.php
Normal file
13
config/datatables-fractal.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
* Request key name to parse includes on fractal.
|
||||
*/
|
||||
'includes' => 'include',
|
||||
|
||||
/*
|
||||
* Default fractal serializer.
|
||||
*/
|
||||
'serializer' => League\Fractal\Serializer\DataArraySerializer::class,
|
||||
];
|
||||
27
config/datatables-html.php
Normal file
27
config/datatables-html.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
* Default table attributes when generating the table.
|
||||
*/
|
||||
'table' => [
|
||||
'class' => 'table',
|
||||
'id' => 'dataTableBuilder',
|
||||
],
|
||||
|
||||
/*
|
||||
* Default condition to determine if a parameter is a callback or not.
|
||||
* Callbacks needs to start by those terms or they will be casted to string.
|
||||
*/
|
||||
'callback' => ['$', '$.', 'function'],
|
||||
|
||||
/*
|
||||
* Html builder script template.
|
||||
*/
|
||||
'script' => 'datatables::script',
|
||||
|
||||
/*
|
||||
* Html builder script template for DataTables Editor integration.
|
||||
*/
|
||||
'editor' => 'datatables::editor',
|
||||
];
|
||||
8
config/debug-server.php
Normal file
8
config/debug-server.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
* The host to use when listening for debug server connections.
|
||||
*/
|
||||
'host' => 'tcp://127.0.0.1:9912',
|
||||
];
|
||||
202
config/debugbar.php
Normal file
202
config/debugbar.php
Normal file
@@ -0,0 +1,202 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Debugbar Settings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Debugbar is enabled by default, when debug is set to true in app.php.
|
||||
| You can override the value by setting enable to true or false instead of null.
|
||||
|
|
||||
| You can provide an array of URI's that must be ignored (eg. 'api/*')
|
||||
|
|
||||
*/
|
||||
|
||||
'enabled' => env('DEBUGBAR_ENABLED', null),
|
||||
'except' => [
|
||||
'telescope*'
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Storage settings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| DebugBar stores data for session/ajax requests.
|
||||
| You can disable this, so the debugbar stores data in headers/session,
|
||||
| but this can cause problems with large data collectors.
|
||||
| By default, file storage (in the storage folder) is used. Redis and PDO
|
||||
| can also be used. For PDO, run the package migrations first.
|
||||
|
|
||||
*/
|
||||
'storage' => [
|
||||
'enabled' => true,
|
||||
'driver' => 'file', // redis, file, pdo, custom
|
||||
'path' => storage_path('debugbar'), // For file driver
|
||||
'connection' => null, // Leave null for default connection (Redis/PDO)
|
||||
'provider' => '' // Instance of StorageInterface for custom driver
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Vendors
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Vendor files are included by default, but can be set to false.
|
||||
| This can also be set to 'js' or 'css', to only include javascript or css vendor files.
|
||||
| Vendor files are for css: font-awesome (including fonts) and highlight.js (css files)
|
||||
| and for js: jquery and and highlight.js
|
||||
| So if you want syntax highlighting, set it to true.
|
||||
| jQuery is set to not conflict with existing jQuery scripts.
|
||||
|
|
||||
*/
|
||||
|
||||
'include_vendors' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Capture Ajax Requests
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
|
||||
| you can use this option to disable sending the data through the headers.
|
||||
|
|
||||
| Optionally, you can also send ServerTiming headers on ajax requests for the Chrome DevTools.
|
||||
*/
|
||||
|
||||
'capture_ajax' => true,
|
||||
'add_ajax_timing' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Error Handler for Deprecated warnings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When enabled, the Debugbar shows deprecated warnings for Symfony components
|
||||
| in the Messages tab.
|
||||
|
|
||||
*/
|
||||
'error_handler' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Clockwork integration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The Debugbar can emulate the Clockwork headers, so you can use the Chrome
|
||||
| Extension, without the server-side code. It uses Debugbar collectors instead.
|
||||
|
|
||||
*/
|
||||
'clockwork' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| DataCollectors
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enable/disable DataCollectors
|
||||
|
|
||||
*/
|
||||
|
||||
'collectors' => [
|
||||
'phpinfo' => true, // Php version
|
||||
'messages' => true, // Messages
|
||||
'time' => true, // Time Datalogger
|
||||
'memory' => true, // Memory usage
|
||||
'exceptions' => true, // Exception displayer
|
||||
'log' => true, // Logs from Monolog (merged in messages if enabled)
|
||||
'db' => true, // Show database (PDO) queries and bindings
|
||||
'views' => true, // Views with their data
|
||||
'route' => true, // Current route information
|
||||
'auth' => false, // Display Laravel authentication status
|
||||
'gate' => true, // Display Laravel Gate checks
|
||||
'session' => true, // Display session data
|
||||
'symfony_request' => true, // Only one can be enabled..
|
||||
'mail' => true, // Catch mail messages
|
||||
'laravel' => false, // Laravel version and environment
|
||||
'events' => false, // All events fired
|
||||
'default_request' => false, // Regular or special Symfony request logger
|
||||
'logs' => false, // Add the latest log messages
|
||||
'files' => false, // Show the included files
|
||||
'config' => false, // Display config settings
|
||||
'cache' => false, // Display cache events
|
||||
'models' => false, // Display models
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Extra options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Configure some DataCollectors
|
||||
|
|
||||
*/
|
||||
|
||||
'options' => [
|
||||
'auth' => [
|
||||
'show_name' => true, // Also show the users name/email in the debugbar
|
||||
],
|
||||
'db' => [
|
||||
'with_params' => true, // Render SQL with the parameters substituted
|
||||
'backtrace' => true, // Use a backtrace to find the origin of the query in your files.
|
||||
'timeline' => false, // Add the queries to the timeline
|
||||
'explain' => [ // Show EXPLAIN output on queries
|
||||
'enabled' => false,
|
||||
'types' => ['SELECT'], // // workaround ['SELECT'] only. https://github.com/barryvdh/laravel-debugbar/issues/888 ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+
|
||||
],
|
||||
'hints' => true, // Show hints for common mistakes
|
||||
],
|
||||
'mail' => [
|
||||
'full_log' => false
|
||||
],
|
||||
'views' => [
|
||||
'data' => false, //Note: Can slow down the application, because the data can be quite large..
|
||||
],
|
||||
'route' => [
|
||||
'label' => true // show complete route on bar
|
||||
],
|
||||
'logs' => [
|
||||
'file' => null
|
||||
],
|
||||
'cache' => [
|
||||
'values' => true // collect cache values
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Inject Debugbar in Response
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Usually, the debugbar is added just before </body>, by listening to the
|
||||
| Response after the App is done. If you disable this, you have to add them
|
||||
| in your template yourself. See http://phpdebugbar.com/docs/rendering.html
|
||||
|
|
||||
*/
|
||||
|
||||
'inject' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| DebugBar route prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Sometimes you want to set route prefix to be used by DebugBar to load
|
||||
| its resources from. Usually the need comes from misconfigured web server or
|
||||
| from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
|
||||
|
|
||||
*/
|
||||
'route_prefix' => '_debugbar',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| DebugBar route domain
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default DebugBar route served from the same domain that request served.
|
||||
| To override default domain, specify it as a non-empty value.
|
||||
*/
|
||||
'route_domain' => null,
|
||||
];
|
||||
115
config/erd-generator.php
Normal file
115
config/erd-generator.php
Normal file
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* All models in these directories will be scanned for ER diagram generation.
|
||||
* By default, the `app` directory will be scanned recursively for models.
|
||||
*/
|
||||
'directories' => [
|
||||
base_path('app'),
|
||||
],
|
||||
|
||||
/*
|
||||
* If you want to ignore complete models or certain relations of a specific model,
|
||||
* you can specify them here.
|
||||
* To ignore a model completely, just add the fully qualified classname.
|
||||
* To ignore only a certain relation of a model, enter the classname as the key
|
||||
* and an array of relation names to ignore.
|
||||
*/
|
||||
'ignore' => [
|
||||
// User::class,
|
||||
// Post::class => [
|
||||
// 'user'
|
||||
// ]
|
||||
],
|
||||
|
||||
/*
|
||||
* If true, all directories specified will be scanned recursively for models.
|
||||
* Set this to false if you prefer to explicitly define each directory that should
|
||||
* be scanned for models.
|
||||
*/
|
||||
'recursive' => true,
|
||||
|
||||
/*
|
||||
* The generator will automatically try to look up the model specific columns
|
||||
* and add them to the generated output. If you do not wish to use this
|
||||
* feature, you can disable it here.
|
||||
*/
|
||||
'use_db_schema' => true,
|
||||
|
||||
/*
|
||||
* This setting toggles weather the column types (VARCHAR, INT, TEXT, etc.)
|
||||
* should be visible on the generated diagram. This option requires
|
||||
* 'use_db_schema' to be set to true.
|
||||
*/
|
||||
'use_column_types' => true,
|
||||
|
||||
/*
|
||||
* These colors will be used in the table representation for each entity in
|
||||
* your graph.
|
||||
*/
|
||||
'table' => [
|
||||
'header_background_color' => '#d3d3d3',
|
||||
'header_font_color' => '#333333',
|
||||
'row_background_color' => '#ffffff',
|
||||
'row_font_color' => '#333333',
|
||||
],
|
||||
|
||||
/*
|
||||
* Here you can define all the available Graphviz attributes that should be applied to your graph,
|
||||
* to its nodes and to the edge (the connection between the nodes). Depending on the size of
|
||||
* your diagram, different settings might produce better looking results for you.
|
||||
*
|
||||
* See http://www.graphviz.org/doc/info/attrs.html#d:label for a full list of attributes.
|
||||
*/
|
||||
'graph' => [
|
||||
'style' => 'filled',
|
||||
'bgcolor' => '#F7F7F7',
|
||||
'fontsize' => 12,
|
||||
'labelloc' => 't',
|
||||
'concentrate' => true,
|
||||
'splines' => 'polyline',
|
||||
'overlap' => false,
|
||||
'nodesep' => 1,
|
||||
'rankdir' => 'LR',
|
||||
'pad' => 0.5,
|
||||
'ranksep' => 2,
|
||||
'esep' => true,
|
||||
'fontname' => 'Helvetica Neue'
|
||||
],
|
||||
|
||||
'node' => [
|
||||
'margin' => 0,
|
||||
'shape' => 'rectangle',
|
||||
'fontname' => 'Helvetica Neue'
|
||||
],
|
||||
|
||||
'edge' => [
|
||||
'color' => '#003049',
|
||||
'penwidth' => 1.8,
|
||||
'fontname' => 'Helvetica Neue'
|
||||
],
|
||||
|
||||
'relations' => [
|
||||
'HasOne' => [
|
||||
'dir' => 'both',
|
||||
'color' => '#D62828',
|
||||
'arrowhead' => 'tee',
|
||||
'arrowtail' => 'none',
|
||||
],
|
||||
'BelongsTo' => [
|
||||
'dir' => 'both',
|
||||
'color' => '#F77F00',
|
||||
'arrowhead' => 'tee',
|
||||
'arrowtail' => 'crow',
|
||||
],
|
||||
'HasMany' => [
|
||||
'dir' => 'both',
|
||||
'color' => '#FCBF49',
|
||||
'arrowhead' => 'crow',
|
||||
'arrowtail' => 'none',
|
||||
],
|
||||
]
|
||||
|
||||
];
|
||||
186
config/excel.php
Normal file
186
config/excel.php
Normal file
@@ -0,0 +1,186 @@
|
||||
<?php
|
||||
|
||||
use Maatwebsite\Excel\Excel;
|
||||
|
||||
return [
|
||||
|
||||
'exports' => [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Chunk size
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When using FromQuery, the query is automatically chunked.
|
||||
| Here you can specify how big the chunk should be.
|
||||
|
|
||||
*/
|
||||
'chunk_size' => 1000,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pre-calculate formulas during export
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
'pre_calculate_formulas' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| CSV Settings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Configure e.g. delimiter, enclosure and line ending for CSV exports.
|
||||
|
|
||||
*/
|
||||
'csv' => [
|
||||
'delimiter' => ',',
|
||||
'enclosure' => '"',
|
||||
'line_ending' => PHP_EOL,
|
||||
'use_bom' => false,
|
||||
'include_separator_line' => false,
|
||||
'excel_compatibility' => false,
|
||||
],
|
||||
],
|
||||
|
||||
'imports' => [
|
||||
|
||||
'read_only' => true,
|
||||
|
||||
'heading_row' => [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Heading Row Formatter
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Configure the heading row formatter.
|
||||
| Available options: none|slug|custom
|
||||
|
|
||||
*/
|
||||
'formatter' => 'slug',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| CSV Settings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Configure e.g. delimiter, enclosure and line ending for CSV imports.
|
||||
|
|
||||
*/
|
||||
'csv' => [
|
||||
'delimiter' => ',',
|
||||
'enclosure' => '"',
|
||||
'escape_character' => '\\',
|
||||
'contiguous' => false,
|
||||
'input_encoding' => 'UTF-8',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Extension detector
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Configure here which writer type should be used when
|
||||
| the package needs to guess the correct type
|
||||
| based on the extension alone.
|
||||
|
|
||||
*/
|
||||
'extension_detector' => [
|
||||
'xlsx' => Excel::XLSX,
|
||||
'xlsm' => Excel::XLSX,
|
||||
'xltx' => Excel::XLSX,
|
||||
'xltm' => Excel::XLSX,
|
||||
'xls' => Excel::XLS,
|
||||
'xlt' => Excel::XLS,
|
||||
'ods' => Excel::ODS,
|
||||
'ots' => Excel::ODS,
|
||||
'slk' => Excel::SLK,
|
||||
'xml' => Excel::XML,
|
||||
'gnumeric' => Excel::GNUMERIC,
|
||||
'htm' => Excel::HTML,
|
||||
'html' => Excel::HTML,
|
||||
'csv' => Excel::CSV,
|
||||
'tsv' => Excel::TSV,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| PDF Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Configure here which Pdf driver should be used by default.
|
||||
| Available options: Excel::MPDF | Excel::TCPDF | Excel::DOMPDF
|
||||
|
|
||||
*/
|
||||
'pdf' => Excel::DOMPDF,
|
||||
],
|
||||
|
||||
'value_binder' => [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Value Binder
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| PhpSpreadsheet offers a way to hook into the process of a value being
|
||||
| written to a cell. In there some assumptions are made on how the
|
||||
| value should be formatted. If you want to change those defaults,
|
||||
| you can implement your own default value binder.
|
||||
|
|
||||
*/
|
||||
'default' => Maatwebsite\Excel\DefaultValueBinder::class,
|
||||
],
|
||||
|
||||
'transactions' => [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Transaction Handler
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default the import is wrapped in a transaction. This is useful
|
||||
| for when an import may fail and you want to retry it. With the
|
||||
| transactions, the previous import gets rolled-back.
|
||||
|
|
||||
| You can disable the transaction handler by setting this to null.
|
||||
| Or you can choose a custom made transaction handler here.
|
||||
|
|
||||
| Supported handlers: null|db
|
||||
|
|
||||
*/
|
||||
'handler' => 'db',
|
||||
],
|
||||
|
||||
'temporary_files' => [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Local Temporary Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When exporting and importing files, we use a temporary file, before
|
||||
| storing reading or downloading. Here you can customize that path.
|
||||
|
|
||||
*/
|
||||
'local_path' => sys_get_temp_dir(),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Remote Temporary Disk
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When dealing with a multi server setup with queues in which you
|
||||
| cannot rely on having a shared local temporary path, you might
|
||||
| want to store the temporary file on a shared disk. During the
|
||||
| queue executing, we'll retrieve the temporary file from that
|
||||
| location instead. When left to null, it will always use
|
||||
| the local path. This setting only has effect when using
|
||||
| in conjunction with queued imports and exports.
|
||||
|
|
||||
*/
|
||||
'remote_disk' => null,
|
||||
'remote_prefix' => null,
|
||||
|
||||
],
|
||||
];
|
||||
74
config/gdpr.php
Normal file
74
config/gdpr.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Prefix URI
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This URI is used to prefix all GDPR routes. You may change this value as
|
||||
| required, but don't forget the update your forms accordingly.
|
||||
|
|
||||
*/
|
||||
|
||||
'uri' => 'gdpr',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Route Middleware
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These middleware are run during every request to the GDPR routes. Please
|
||||
| keep in mind to only allow authenticated users to access the routes.
|
||||
|
|
||||
*/
|
||||
|
||||
'middleware' => [
|
||||
'web',
|
||||
'auth',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Re-authentication
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Only authenticated users should be able to download their data.
|
||||
| Re-authentication is recommended to prevent information leakage.
|
||||
|
|
||||
*/
|
||||
|
||||
're-authenticate' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cleanup Strategy
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This strategy will be used to clean up inactive users. Do not forget to
|
||||
| mention these thresholds in your terms and conditions.
|
||||
|
|
||||
*/
|
||||
|
||||
'cleanup' => [
|
||||
|
||||
'strategy' => 'Soved\Laravel\Gdpr\Jobs\Cleanup\Strategies\DefaultStrategy',
|
||||
|
||||
'defaultStrategy' => [
|
||||
|
||||
/*
|
||||
* The number of months for which inactive users must be kept.
|
||||
*/
|
||||
'keepInactiveUsersForMonths' => 6,
|
||||
|
||||
/*
|
||||
* The number of days before deletion at which inactive users will be notified.
|
||||
*/
|
||||
'notifyUsersDaysBeforeDeletion' => 14,
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
42
config/generators.config.php
Normal file
42
config/generators.config.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Where the templates for the generators are stored...
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
'model_template_path' => base_path('vendor/mediactive-digital/laravel-4-generators/src/Way/Generators/templates/model.txt'),
|
||||
|
||||
'scaffold_model_template_path' => base_path('vendor/mediactive-digital/laravel-4-generators/src/Way/Generators/templates/scaffolding/model.txt'),
|
||||
|
||||
'controller_template_path' => base_path('vendor/mediactive-digital/laravel-4-generators/src/Way/Generators/templates/controller.txt'),
|
||||
|
||||
'scaffold_controller_template_path' => base_path('vendor/mediactive-digital/laravel-4-generators/src/Way/Generators/templates/scaffolding/controller.txt'),
|
||||
|
||||
'migration_template_path' => base_path('vendor/mediactive-digital/laravel-4-generators/src/Way/Generators/templates/migration.txt'),
|
||||
|
||||
'seed_template_path' => base_path('vendor/mediactive-digital/laravel-4-generators/src/Way/Generators/templates/seed.txt'),
|
||||
|
||||
'view_template_path' => base_path('vendor/mediactive-digital/laravel-4-generators/src/Way/Generators/templates/view.txt'),
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Where the generated files will be saved...
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
'model_target_path' => app_path(),
|
||||
|
||||
'controller_target_path' => app_path('Http/Controllers'),
|
||||
|
||||
'migration_target_path' => base_path('database/migrations'),
|
||||
|
||||
'seed_target_path' => base_path('database/seeds'),
|
||||
|
||||
'view_target_path' => base_path('resources/views')
|
||||
|
||||
];
|
||||
110
config/geocoder.php
Normal file
110
config/geocoder.php
Normal file
@@ -0,0 +1,110 @@
|
||||
<?php
|
||||
|
||||
use Geocoder\Provider\Chain\Chain;
|
||||
use Geocoder\Provider\GeoPlugin\GeoPlugin;
|
||||
use Geocoder\Provider\GoogleMaps\GoogleMaps;
|
||||
use Http\Client\Curl\Client;
|
||||
|
||||
return [
|
||||
'cache' => [
|
||||
|
||||
/*
|
||||
|-----------------------------------------------------------------------
|
||||
| Cache Store
|
||||
|-----------------------------------------------------------------------
|
||||
|
|
||||
| Specify the cache store to use for caching. The value "null" will use
|
||||
| the default cache store specified in /config/cache.php file.
|
||||
|
|
||||
| Default: null
|
||||
|
|
||||
*/
|
||||
|
||||
'store' => null,
|
||||
|
||||
/*
|
||||
|-----------------------------------------------------------------------
|
||||
| Cache Duration
|
||||
|-----------------------------------------------------------------------
|
||||
|
|
||||
| Specify the cache duration in minutes. The default approximates a
|
||||
| "forever" cache, but there are certain issues with Laravel's forever
|
||||
| caching methods that prevent us from using them in this project.
|
||||
|
|
||||
| Default: 9999999 (integer)
|
||||
|
|
||||
*/
|
||||
|
||||
'duration' => 9999999,
|
||||
],
|
||||
|
||||
/*
|
||||
|---------------------------------------------------------------------------
|
||||
| Providers
|
||||
|---------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify any number of providers that should be used to
|
||||
| perform geocaching operations. The `chain` provider is special,
|
||||
| in that it can contain multiple providers that will be run in
|
||||
| the sequence listed, should the previous provider fail. By
|
||||
| default the first provider listed will be used, but you
|
||||
| can explicitly call subsequently listed providers by
|
||||
| alias: `app('geocoder')->using('google_maps')`.
|
||||
|
|
||||
| Please consult the official Geocoder documentation for more info.
|
||||
| https://github.com/geocoder-php/Geocoder#providers
|
||||
|
|
||||
*/
|
||||
'providers' => [
|
||||
Chain::class => [
|
||||
GoogleMaps::class => [
|
||||
env('GOOGLE_MAPS_LOCALE', 'en-US'),
|
||||
env('GOOGLE_MAPS_API_KEY'),
|
||||
],
|
||||
GeoPlugin::class => [],
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|---------------------------------------------------------------------------
|
||||
| Adapter
|
||||
|---------------------------------------------------------------------------
|
||||
|
|
||||
| You can specify which PSR-7-compliant HTTP adapter you would like to use.
|
||||
| There are multiple options at your disposal: CURL, Guzzle, and others.
|
||||
|
|
||||
| Please consult the official Geocoder documentation for more info.
|
||||
| https://github.com/geocoder-php/Geocoder#usage
|
||||
|
|
||||
| Default: Client::class (FQCN for CURL adapter)
|
||||
|
|
||||
*/
|
||||
'adapter' => Client::class,
|
||||
|
||||
/*
|
||||
|---------------------------------------------------------------------------
|
||||
| Reader
|
||||
|---------------------------------------------------------------------------
|
||||
|
|
||||
| You can specify a reader for specific providers, like GeoIp2, which
|
||||
| connect to a local file-database. The reader should be set to an
|
||||
| instance of the required reader class or an array containing the reader
|
||||
| class and arguments.
|
||||
|
|
||||
| Please consult the official Geocoder documentation for more info.
|
||||
| https://github.com/geocoder-php/geoip2-provider
|
||||
|
|
||||
| Default: null
|
||||
|
|
||||
| Example:
|
||||
| 'reader' => [
|
||||
| WebService::class => [
|
||||
| env('MAXMIND_USER_ID'),
|
||||
| env('MAXMIND_LICENSE_KEY')
|
||||
| ],
|
||||
| ],
|
||||
|
|
||||
*/
|
||||
'reader' => null,
|
||||
|
||||
];
|
||||
72
config/helpers.php
Normal file
72
config/helpers.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Package Helpers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This package comes with some pre-built helpers. Activate the ones
|
||||
| you wish to use by selecting them here. Valid options include:
|
||||
|
|
||||
| datetime, feedback, formatter, image, money, validation
|
||||
|
|
||||
*/
|
||||
|
||||
'package_helpers' => [],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Helpers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You are also encouraged to write your own helpers. If you prefer a
|
||||
| mapper based inclusion, you can selectively activate your custom
|
||||
| helpers by adding them here. Otherwise all PHP files in the
|
||||
| Helpers directory will be automatically loaded.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom_helpers' => [],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Directory
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default this package will look in the application's 'Helpers'
|
||||
| directory. However, you may choose to override the directory.
|
||||
|
|
||||
*/
|
||||
|
||||
'directory' => 'Helpers',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Timezone
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The 'datetime' helper provides an easy way to format all of your Datetime
|
||||
| instances according to a runtime timezone. As a fallback, you may
|
||||
| enter your applications's default timezone here.
|
||||
|
|
||||
*/
|
||||
|
||||
'default_timezone' => 'america/chicago',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Image
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The 'image' helper provides a simple default image when no image is
|
||||
| passed to it. Here you can define which image you would like to
|
||||
| use as the fallback image. The path is relative to the
|
||||
| resource root, or 'public' directory.
|
||||
|
|
||||
*/
|
||||
|
||||
'default_image' => 'images/noImage.svg',
|
||||
|
||||
];
|
||||
71
config/imagecache.php
Normal file
71
config/imagecache.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Name of route
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enter the routes name to enable dynamic imagecache manipulation.
|
||||
| This handle will define the first part of the URI:
|
||||
|
|
||||
| {route}/{template}/{filename}
|
||||
|
|
||||
| Examples: "images", "img/cache"
|
||||
|
|
||||
*/
|
||||
|
||||
'route' => null,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Storage paths
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following paths will be searched for the image filename, submitted
|
||||
| by URI.
|
||||
|
|
||||
| Define as many directories as you like.
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => array(
|
||||
public_path('upload'),
|
||||
public_path('images')
|
||||
),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Manipulation templates
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify your own manipulation filter templates.
|
||||
| The keys of this array will define which templates
|
||||
| are available in the URI:
|
||||
|
|
||||
| {route}/{template}/{filename}
|
||||
|
|
||||
| The values of this array will define which filter class
|
||||
| will be applied, by its fully qualified name.
|
||||
|
|
||||
*/
|
||||
|
||||
'templates' => array(
|
||||
'small' => 'Intervention\Image\Templates\Small',
|
||||
'medium' => 'Intervention\Image\Templates\Medium',
|
||||
'large' => 'Intervention\Image\Templates\Large',
|
||||
),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Image Cache Lifetime
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Lifetime in minutes of the images handled by the imagecache route.
|
||||
|
|
||||
*/
|
||||
|
||||
'lifetime' => 43200,
|
||||
|
||||
);
|
||||
12
config/initializer.php
Normal file
12
config/initializer.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Environment configuration key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Config path, where current environment value stored
|
||||
*/
|
||||
'env_config_key' => 'app.env',
|
||||
];
|
||||
113
config/insights.php
Normal file
113
config/insights.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenDefineFunctions;
|
||||
use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenFinalClasses;
|
||||
use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenNormalClasses;
|
||||
use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenPrivateMethods;
|
||||
use NunoMaduro\PhpInsights\Domain\Insights\ForbiddenTraits;
|
||||
use NunoMaduro\PhpInsights\Domain\Metrics\Architecture\Classes;
|
||||
use SlevomatCodingStandard\Sniffs\Commenting\UselessFunctionDocCommentSniff;
|
||||
use SlevomatCodingStandard\Sniffs\Namespaces\AlphabeticallySortedUsesSniff;
|
||||
use SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff;
|
||||
use SlevomatCodingStandard\Sniffs\TypeHints\DisallowMixedTypeHintSniff;
|
||||
use SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff;
|
||||
use SlevomatCodingStandard\Sniffs\TypeHints\PropertyTypeHintSniff;
|
||||
use SlevomatCodingStandard\Sniffs\TypeHints\ReturnTypeHintSniff;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Preset
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the default preset that will be used by PHP Insights
|
||||
| to make your code reliable, simple, and clean. However, you can always
|
||||
| adjust the `Metrics` and `Insights` below in this configuration file.
|
||||
|
|
||||
| Supported: "default", "laravel", "symfony", "magento2", "drupal"
|
||||
|
|
||||
*/
|
||||
|
||||
'preset' => 'laravel',
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| IDE
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This options allow to add hyperlinks in your terminal to quickly open
|
||||
| files in your favorite IDE while browsing your PhpInsights report.
|
||||
|
|
||||
| Supported: "textmate", "macvim", "emacs", "sublime", "phpstorm",
|
||||
| "atom", "vscode".
|
||||
|
|
||||
| If you have another IDE that is not in this list but which provide an
|
||||
| url-handler, you could fill this config with a pattern like this:
|
||||
|
|
||||
| myide://open?url=file://%f&line=%l
|
||||
|
|
||||
*/
|
||||
|
||||
'ide' => null,
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may adjust all the various `Insights` that will be used by PHP
|
||||
| Insights. You can either add, remove or configure `Insights`. Keep in
|
||||
| mind that all added `Insights` must belong to a specific `Metric`.
|
||||
|
|
||||
*/
|
||||
|
||||
'exclude' => [
|
||||
// 'path/to/directory-or-file'
|
||||
],
|
||||
|
||||
'add' => [
|
||||
Classes::class => [
|
||||
ForbiddenFinalClasses::class,
|
||||
],
|
||||
],
|
||||
|
||||
'remove' => [
|
||||
AlphabeticallySortedUsesSniff::class,
|
||||
DeclareStrictTypesSniff::class,
|
||||
DisallowMixedTypeHintSniff::class,
|
||||
ForbiddenDefineFunctions::class,
|
||||
ForbiddenNormalClasses::class,
|
||||
ForbiddenTraits::class,
|
||||
ParameterTypeHintSniff::class,
|
||||
PropertyTypeHintSniff::class,
|
||||
ReturnTypeHintSniff::class,
|
||||
UselessFunctionDocCommentSniff::class,
|
||||
],
|
||||
|
||||
'config' => [
|
||||
ForbiddenPrivateMethods::class => [
|
||||
'title' => 'The usage of private methods is not idiomatic in Laravel.',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Requirements
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may define a level you want to reach per `Insights` category.
|
||||
| When a score is lower than the minimum level defined, then an error
|
||||
| code will be returned. This is optional and individually defined.
|
||||
|
|
||||
*/
|
||||
|
||||
'requirements' => [
|
||||
// 'min-quality' => 0,
|
||||
// 'min-complexity' => 0,
|
||||
// 'min-architecture' => 0,
|
||||
// 'min-style' => 0,
|
||||
// 'disable-security-check' => false,
|
||||
],
|
||||
|
||||
];
|
||||
30
config/javascript.php
Normal file
30
config/javascript.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| View to Bind JavaScript Vars To
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set this value to the name of the view (or partial) that
|
||||
| you want to prepend all JavaScript variables to.
|
||||
| This can be a single view, or an array of views.
|
||||
| Example: 'footer' or ['footer', 'bottom']
|
||||
|
|
||||
*/
|
||||
'bind_js_vars_to_this_view' => 'footer',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| JavaScript Namespace
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default, we'll add variables to the global window object. However,
|
||||
| it's recommended that you change this to some namespace - anything.
|
||||
| That way, you can access vars, like "SomeNamespace.someVariable."
|
||||
|
|
||||
*/
|
||||
'js_namespace' => 'window'
|
||||
|
||||
];
|
||||
42
config/jsvalidation.php
Normal file
42
config/jsvalidation.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* Default view used to render Javascript validation code
|
||||
*
|
||||
* Supported: 'jsvalidation::bootstrap', 'jsvalidation::bootstrap4'
|
||||
*/
|
||||
'view' => 'jsvalidation::bootstrap',
|
||||
|
||||
/*
|
||||
* Default JQuery selector find the form to be validated.
|
||||
* By default, the validations are applied to all forms.
|
||||
*/
|
||||
'form_selector' => 'form',
|
||||
|
||||
/*
|
||||
* If you change the focus on detect some error then active
|
||||
* this parameter to move the focus to the first error found.
|
||||
*/
|
||||
'focus_on_error' => false,
|
||||
|
||||
/*
|
||||
* Duration time for the animation when We are moving the focus
|
||||
* to the first error, http://api.jquery.com/animate/ for more information.
|
||||
*/
|
||||
'duration_animate' => 1000,
|
||||
|
||||
/*
|
||||
* Enable or disable Ajax validations of Database and custom rules.
|
||||
* By default Unique, ActiveURL, Exists and custom validations are validated via AJAX
|
||||
*/
|
||||
'disable_remote_validation' => false,
|
||||
|
||||
/*
|
||||
* Field name used in the remote validation Ajax request
|
||||
* You can change this value to avoid conflicts wth your field names
|
||||
*/
|
||||
'remote_validation_field' => '_jsvalidation',
|
||||
|
||||
];
|
||||
22
config/laravel-widgets.php
Normal file
22
config/laravel-widgets.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
//'default_namespace' => 'App\Widgets',
|
||||
|
||||
'use_jquery_for_ajax_calls' => false,
|
||||
|
||||
/*
|
||||
* Set Ajax widget middleware
|
||||
*/
|
||||
'route_middleware' => ['web'],
|
||||
|
||||
/*
|
||||
* Relative path from the base directory to a regular widget stub.
|
||||
*/
|
||||
'widget_stub' => 'vendor/arrilot/laravel-widgets/src/Console/stubs/widget.stub',
|
||||
|
||||
/*
|
||||
* Relative path from the base directory to a plain widget stub.
|
||||
*/
|
||||
'widget_plain_stub' => 'vendor/arrilot/laravel-widgets/src/Console/stubs/widget_plain.stub',
|
||||
];
|
||||
58
config/laroute.php
Normal file
58
config/laroute.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* The destination path for the javascript file.
|
||||
*/
|
||||
'path' => 'public/js',
|
||||
|
||||
/*
|
||||
* The destination filename for the javascript file.
|
||||
*/
|
||||
'filename' => 'laroute',
|
||||
|
||||
/*
|
||||
* The namespace for the helper functions. By default this will bind them to
|
||||
* `window.laroute`.
|
||||
*/
|
||||
'namespace' => 'laroute',
|
||||
|
||||
/*
|
||||
* Generate absolute URLs
|
||||
*
|
||||
* Set the Application URL in config/app.php
|
||||
*/
|
||||
'absolute' => false,
|
||||
|
||||
/*
|
||||
* The Filter Method
|
||||
*
|
||||
* 'all' => All routes except "'laroute' => false"
|
||||
* 'only' => Only "'laroute' => true" routes
|
||||
* 'force' => All routes, ignored "laroute" route parameter
|
||||
*/
|
||||
'filter' => 'all',
|
||||
|
||||
/*
|
||||
* Controller Namespace
|
||||
*
|
||||
* Set here your controller namespace (see RouteServiceProvider -> $namespace) for cleaner action calls
|
||||
* e.g. 'App\Http\Controllers'
|
||||
*/
|
||||
'action_namespace' => '',
|
||||
|
||||
/*
|
||||
* The path to the template `laroute.js` file. This is the file that contains
|
||||
* the ported helper Laravel url/route functions and the route data to go
|
||||
* with them.
|
||||
*/
|
||||
'template' => 'vendor/te7a-houdini/laroute/src/templates/laroute.js',
|
||||
|
||||
/*
|
||||
* Appends a prefix to URLs. By default the prefix is an empty string.
|
||||
*
|
||||
*/
|
||||
'prefix' => '',
|
||||
|
||||
];
|
||||
28
config/mail-auto-embed.php
Normal file
28
config/mail-auto-embed.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mail auto embed
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If true, images will be automatically embedded.
|
||||
| If false, only images with the 'data-auto-embed' attribute will be embedded
|
||||
|
|
||||
*/
|
||||
|
||||
'enabled' => env('MAIL_AUTO_EMBED', true),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mail embed method
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Supported: "attachment", "base64"
|
||||
|
|
||||
*/
|
||||
|
||||
'method' => env('MAIL_AUTO_EMBED_METHOD', 'attachment'),
|
||||
|
||||
];
|
||||
22
config/mailLogger.php
Normal file
22
config/mailLogger.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
* Enable auto deleting of log.
|
||||
*/
|
||||
'enableAutoDeletion' => false,
|
||||
|
||||
/*
|
||||
* Set how long a entry should be in the database. Remember that enableAutoDeletion has to be true.
|
||||
*/
|
||||
'keepLogsForDays' => 30,
|
||||
|
||||
/*
|
||||
* Define all possible input field names your app uses when sending the email. This will then be used to get the
|
||||
* field value from the request
|
||||
*/
|
||||
'toEmailAddresses' => [
|
||||
'to',
|
||||
'email',
|
||||
],
|
||||
];
|
||||
249
config/maileclipse.php
Normal file
249
config/maileclipse.php
Normal file
@@ -0,0 +1,249 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| MailEclipse Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the URL where you can access mailEclipse
|
||||
|
|
||||
*/
|
||||
|
||||
'path' => 'maileclipse',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Mailables Directory
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
|
||||
'mailables_dir' => app_path('Mail/'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| If you want the package to look for the equivalent factory if the
|
||||
| dependency is an eloquent model.
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
|
||||
'factory' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Environment
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you don't want to use this package in production env
|
||||
| at all, you can restrict that using this option
|
||||
| rather than by using a middleware.
|
||||
|
|
||||
*/
|
||||
|
||||
'allowed_environments' => ['local', 'staging', 'testing'],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| MailEclipse Route Middleware
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The value should be an array of fully qualified
|
||||
| class names of the middleware classes.
|
||||
|
|
||||
*/
|
||||
|
||||
'middlewares' => [
|
||||
'web',
|
||||
//'auth',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Templates
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| List of pre-defined templates used by maileclipse (HTML/Markdown)
|
||||
|
|
||||
|
|
||||
*/
|
||||
|
||||
'skeletons' => [
|
||||
|
||||
'html' => [
|
||||
|
||||
'airmail' => [
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'ping',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'upsell',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'cerberus' => [
|
||||
'fluid',
|
||||
'hybrid',
|
||||
'responsive',
|
||||
],
|
||||
|
||||
'cleave' => [
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'ping',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'upsell',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'go' => [
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'ping',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'upsell',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'goldstar' => [
|
||||
'birthday',
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'update',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'mantra' => [
|
||||
'activation',
|
||||
'birthday',
|
||||
'coupon',
|
||||
'progress',
|
||||
'rating',
|
||||
'receipt',
|
||||
'shipped',
|
||||
'update',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'meow' => [
|
||||
'confirmation',
|
||||
'coupon',
|
||||
'digest-left',
|
||||
'digest-right',
|
||||
'progress',
|
||||
'receipt',
|
||||
'survey',
|
||||
'two-column',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'narrative' => [
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'ping',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'upsell',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'neopolitan' => [
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'ping',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'upsell',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'oxygen' => [
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'ping',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'upsell',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'plain' => [
|
||||
'plain',
|
||||
],
|
||||
|
||||
'skyline' => [
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'ping',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'upsell',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'sunday' => [
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'ping',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'upsell',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
'zenflat' => [
|
||||
'confirm',
|
||||
'invite',
|
||||
'invoice',
|
||||
'ping',
|
||||
'progress',
|
||||
'reignite',
|
||||
'survey',
|
||||
'upsell',
|
||||
'welcome',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'markdown' => [
|
||||
'postmark' => [
|
||||
'blank',
|
||||
'comment-notification',
|
||||
'invoice',
|
||||
'receipt',
|
||||
'reset-password',
|
||||
'reset-password-help',
|
||||
'trial-expired',
|
||||
'trial-expiring',
|
||||
'user-invitation',
|
||||
'welcome',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
74
config/mailpreview.php
Normal file
74
config/mailpreview.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Generated previews path
|
||||
* --------------------------------------------------------------------------
|
||||
*
|
||||
* This option determines where all the generated email previews will be
|
||||
* stored for the application. Typically, this is within the storage
|
||||
* directory. However, you may change the location as you desire.
|
||||
*
|
||||
*/
|
||||
|
||||
'path' => storage_path('email-previews'),
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Time in seconds to keep old previews
|
||||
* --------------------------------------------------------------------------
|
||||
*
|
||||
* This option determines how long (in seconds) the mail transformer should
|
||||
* keep the generated preview files before deleting them. By default it
|
||||
* set to 60 seconds, but you can change this to whatever you desire.
|
||||
*
|
||||
*/
|
||||
|
||||
'maximum_lifetime' => 60,
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* An option to enable showing a HTML link on mail sent
|
||||
* --------------------------------------------------------------------------
|
||||
*
|
||||
* This option determines if you would like to show a HTML link at the top
|
||||
* left corner of your screen every time and email is sent from your
|
||||
* system, the link will point the browser to the preview file.
|
||||
*
|
||||
*/
|
||||
|
||||
'show_link_to_preview' => true,
|
||||
|
||||
/**
|
||||
* The timeout for the popup
|
||||
*
|
||||
* This is a time in miliseconds
|
||||
* if you use 0 or a negative number it will never be removed.
|
||||
*/
|
||||
'popup_timeout' => 8000,
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Middleware group(s)
|
||||
* --------------------------------------------------------------------------
|
||||
*
|
||||
* Most likely you don't have to touch this value, in this array all
|
||||
* middleware groups that you want to use this package with should
|
||||
* be included.
|
||||
*/
|
||||
'middleware_groups' => ['web'],
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Set middleware for the mail preview route
|
||||
* --------------------------------------------------------------------------
|
||||
*
|
||||
* This option allows for setting middlewares for the route that shows a
|
||||
* preview to the mail that was just sent.
|
||||
*/
|
||||
|
||||
'middleware' => [
|
||||
|
||||
],
|
||||
];
|
||||
156
config/medialibrary.php
Normal file
156
config/medialibrary.php
Normal file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* The disk on which to store added files and derived images by default. Choose
|
||||
* one or more of the disks you've configured in config/filesystems.php.
|
||||
*/
|
||||
'disk_name' => env('MEDIA_DISK', 'public'),
|
||||
|
||||
/*
|
||||
* The maximum file size of an item in bytes.
|
||||
* Adding a larger file will result in an exception.
|
||||
*/
|
||||
'max_file_size' => 1024 * 1024 * 10,
|
||||
|
||||
/*
|
||||
* This queue will be used to generate derived and responsive images.
|
||||
* Leave empty to use the default queue.
|
||||
*/
|
||||
'queue_name' => '',
|
||||
|
||||
/*
|
||||
* The fully qualified class name of the media model.
|
||||
*/
|
||||
'media_model' => Spatie\MediaLibrary\Models\Media::class,
|
||||
|
||||
's3' => [
|
||||
/*
|
||||
* The domain that should be prepended when generating urls.
|
||||
*/
|
||||
'domain' => 'https://'.env('AWS_BUCKET').'.s3.amazonaws.com',
|
||||
],
|
||||
|
||||
'remote' => [
|
||||
/*
|
||||
* Any extra headers that should be included when uploading media to
|
||||
* a remote disk. Even though supported headers may vary between
|
||||
* different drivers, a sensible default has been provided.
|
||||
*
|
||||
* Supported by S3: CacheControl, Expires, StorageClass,
|
||||
* ServerSideEncryption, Metadata, ACL, ContentEncoding
|
||||
*/
|
||||
'extra_headers' => [
|
||||
'CacheControl' => 'max-age=604800',
|
||||
],
|
||||
],
|
||||
|
||||
'responsive_images' => [
|
||||
|
||||
/*
|
||||
* This class is responsible for calculating the target widths of the responsive
|
||||
* images. By default we optimize for filesize and create variations that each are 20%
|
||||
* smaller than the previous one. More info in the documentation.
|
||||
*
|
||||
* https://docs.spatie.be/laravel-medialibrary/v7/advanced-usage/generating-responsive-images
|
||||
*/
|
||||
'width_calculator' => Spatie\MediaLibrary\ResponsiveImages\WidthCalculator\FileSizeOptimizedWidthCalculator::class,
|
||||
|
||||
/*
|
||||
* By default rendering media to a responsive image will add some javascript and a tiny placeholder.
|
||||
* This ensures that the browser can already determine the correct layout.
|
||||
*/
|
||||
'use_tiny_placeholders' => true,
|
||||
|
||||
/*
|
||||
* This class will generate the tiny placeholder used for progressive image loading. By default
|
||||
* the medialibrary will use a tiny blurred jpg image.
|
||||
*/
|
||||
'tiny_placeholder_generator' => Spatie\MediaLibrary\ResponsiveImages\TinyPlaceholderGenerator\Blurred::class,
|
||||
],
|
||||
|
||||
/*
|
||||
* When urls to files get generated, this class will be called. Leave empty
|
||||
* if your files are stored locally above the site root or on s3.
|
||||
*/
|
||||
'url_generator' => null,
|
||||
|
||||
/*
|
||||
* Whether to activate versioning when urls to files get generated.
|
||||
* When activated, this attaches a ?v=xx query string to the URL.
|
||||
*/
|
||||
'version_urls' => false,
|
||||
|
||||
/*
|
||||
* The class that contains the strategy for determining a media file's path.
|
||||
*/
|
||||
'path_generator' => null,
|
||||
|
||||
/*
|
||||
* Medialibrary will try to optimize all converted images by removing
|
||||
* metadata and applying a little bit of compression. These are
|
||||
* the optimizers that will be used by default.
|
||||
*/
|
||||
'image_optimizers' => [
|
||||
Spatie\ImageOptimizer\Optimizers\Jpegoptim::class => [
|
||||
'--strip-all', // this strips out all text information such as comments and EXIF data
|
||||
'--all-progressive', // this will make sure the resulting image is a progressive one
|
||||
],
|
||||
Spatie\ImageOptimizer\Optimizers\Pngquant::class => [
|
||||
'--force', // required parameter for this package
|
||||
],
|
||||
Spatie\ImageOptimizer\Optimizers\Optipng::class => [
|
||||
'-i0', // this will result in a non-interlaced, progressive scanned image
|
||||
'-o2', // this set the optimization level to two (multiple IDAT compression trials)
|
||||
'-quiet', // required parameter for this package
|
||||
],
|
||||
Spatie\ImageOptimizer\Optimizers\Svgo::class => [
|
||||
'--disable=cleanupIDs', // disabling because it is known to cause troubles
|
||||
],
|
||||
Spatie\ImageOptimizer\Optimizers\Gifsicle::class => [
|
||||
'-b', // required parameter for this package
|
||||
'-O3', // this produces the slowest but best results
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
* These generators will be used to create an image of media files.
|
||||
*/
|
||||
'image_generators' => [
|
||||
Spatie\MediaLibrary\ImageGenerators\FileTypes\Image::class,
|
||||
Spatie\MediaLibrary\ImageGenerators\FileTypes\Webp::class,
|
||||
Spatie\MediaLibrary\ImageGenerators\FileTypes\Pdf::class,
|
||||
Spatie\MediaLibrary\ImageGenerators\FileTypes\Svg::class,
|
||||
Spatie\MediaLibrary\ImageGenerators\FileTypes\Video::class,
|
||||
],
|
||||
|
||||
/*
|
||||
* The engine that should perform the image conversions.
|
||||
* Should be either `gd` or `imagick`.
|
||||
*/
|
||||
'image_driver' => env('IMAGE_DRIVER', 'gd'),
|
||||
|
||||
/*
|
||||
* FFMPEG & FFProbe binaries paths, only used if you try to generate video
|
||||
* thumbnails and have installed the php-ffmpeg/php-ffmpeg composer
|
||||
* dependency.
|
||||
*/
|
||||
'ffmpeg_path' => env('FFMPEG_PATH', '/usr/bin/ffmpeg'),
|
||||
'ffprobe_path' => env('FFPROBE_PATH', '/usr/bin/ffprobe'),
|
||||
|
||||
/*
|
||||
* The path where to store temporary files while performing image conversions.
|
||||
* If set to null, storage_path('medialibrary/temp') will be used.
|
||||
*/
|
||||
'temporary_directory_path' => null,
|
||||
|
||||
/*
|
||||
* Here you can override the class names of the jobs used by this package. Make sure
|
||||
* your custom jobs extend the ones provided by the package.
|
||||
*/
|
||||
'jobs' => [
|
||||
'perform_conversions' => Spatie\MediaLibrary\Jobs\PerformConversions::class,
|
||||
'generate_responsive_images' => Spatie\MediaLibrary\Jobs\GenerateResponsiveImages::class,
|
||||
],
|
||||
];
|
||||
51
config/schematics.php
Normal file
51
config/schematics.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Schematics
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may define the namespaces, middleware and toggle auto-migration.
|
||||
| Middleware will be applied to the schematic routes and auto-migration
|
||||
| will run the up and down methods on edit events through the UI.
|
||||
|
|
||||
*/
|
||||
|
||||
'controller-namespace' => null,
|
||||
'form-request-namespace' => 'App\\Http\\Requests',
|
||||
'model' => [
|
||||
'namespace' => 'App\\',
|
||||
'path' => app_path(),
|
||||
'paths' => [
|
||||
app_path(),
|
||||
],
|
||||
],
|
||||
'middleware' => null,
|
||||
'auto-migrate' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Create, Update & Delete
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may define defaults for the scaffolding. These will set
|
||||
| the checkboxes in the forms to be checked or not.
|
||||
|
|
||||
*/
|
||||
|
||||
'create' => [
|
||||
'migration' => false,
|
||||
'resource-controller' => false,
|
||||
'form-request' => false,
|
||||
],
|
||||
|
||||
'update' => [
|
||||
'migration' => false,
|
||||
],
|
||||
|
||||
'delete' => [
|
||||
'migration' => false,
|
||||
],
|
||||
];
|
||||
91
config/scout.php
Normal file
91
config/scout.php
Normal file
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Search Engine
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the default search connection that gets used while
|
||||
| using Laravel Scout. This connection is used when syncing all models
|
||||
| to the search service. You should adjust this based on your needs.
|
||||
|
|
||||
| Supported: "algolia", "null"
|
||||
|
|
||||
*/
|
||||
|
||||
'driver' => env('SCOUT_DRIVER', 'algolia'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify a prefix that will be applied to all search index
|
||||
| names used by Scout. This prefix may be useful if you have multiple
|
||||
| "tenants" or applications sharing the same search infrastructure.
|
||||
|
|
||||
*/
|
||||
|
||||
'prefix' => env('SCOUT_PREFIX', ''),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Queue Data Syncing
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to control if the operations that sync your data
|
||||
| with your search engines are queued. When this is set to "true" then
|
||||
| all automatic data syncing will get queued for better performance.
|
||||
|
|
||||
*/
|
||||
|
||||
'queue' => env('SCOUT_QUEUE', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Chunk Sizes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These options allow you to control the maximum chunk size when you are
|
||||
| mass importing data into the search engine. This allows you to fine
|
||||
| tune each of these chunk sizes based on the power of the servers.
|
||||
|
|
||||
*/
|
||||
|
||||
'chunk' => [
|
||||
'searchable' => 500,
|
||||
'unsearchable' => 500,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Soft Deletes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows to control whether to keep soft deleted records in
|
||||
| the search indexes. Maintaining soft deleted records can be useful
|
||||
| if your application still needs to search for the records later.
|
||||
|
|
||||
*/
|
||||
|
||||
'soft_delete' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Algolia Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure your Algolia settings. Algolia is a cloud hosted
|
||||
| search engine which works great with Scout out of the box. Just plug
|
||||
| in your application ID and admin API key to get started searching.
|
||||
|
|
||||
*/
|
||||
|
||||
'algolia' => [
|
||||
'id' => env('ALGOLIA_APP_ID', ''),
|
||||
'secret' => env('ALGOLIA_SECRET', ''),
|
||||
],
|
||||
|
||||
];
|
||||
60
config/stats.php
Normal file
60
config/stats.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* List of folders to be analyzed.
|
||||
*/
|
||||
'paths' => [
|
||||
base_path('app'),
|
||||
base_path('database'),
|
||||
base_path('tests'),
|
||||
],
|
||||
|
||||
/*
|
||||
* List of files/folders to be excluded from analysis.
|
||||
*/
|
||||
'exclude' => [
|
||||
base_path('tests/bootstrap.php'),
|
||||
// base_path('app/helpers.php'),
|
||||
// base_path('app/Services'),
|
||||
],
|
||||
|
||||
/*
|
||||
* List of your custom Classifiers
|
||||
*/
|
||||
'custom_component_classifier' => [
|
||||
// \App\Classifiers\CustomerExportClassifier::class
|
||||
],
|
||||
|
||||
/*
|
||||
* The Strategy used to reject Classes from the project statistics.
|
||||
*
|
||||
* By default all Classes located in
|
||||
* the vendor directory are being rejected and don't
|
||||
* count to the statistics.
|
||||
*
|
||||
* The package ships with 2 strategies:
|
||||
* - \Wnx\LaravelStats\RejectionStrategies\RejectVendorClasses::class
|
||||
* - \Wnx\LaravelStats\RejectionStrategies\RejectInternalClasses::class
|
||||
*
|
||||
* If none of the default strategies fit for your usecase, you can
|
||||
* write your own class which implements the RejectionStrategy Contract.
|
||||
*/
|
||||
'rejection_strategy' => \Wnx\LaravelStats\RejectionStrategies\RejectVendorClasses::class,
|
||||
|
||||
/*
|
||||
* Namespaces which should be ignored.
|
||||
* Laravel Stats uses the `Str::startsWith()`class to
|
||||
* check if a Namespace should be ignored.
|
||||
*
|
||||
* You can use `Illuminate` to ignore the entire `Illuminate`-namespace
|
||||
* or `Illuminate\Support` to ignore a subset of the namespace.
|
||||
*/
|
||||
'ignored_namespaces' => [
|
||||
'Wnx\LaravelStats',
|
||||
'Illuminate',
|
||||
'Symfony',
|
||||
],
|
||||
|
||||
];
|
||||
31
config/tagging.php
Normal file
31
config/tagging.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// Datatype for primary keys of your models.
|
||||
// used in migrations only
|
||||
'primary_keys_type' => 'integer', // 'string' or 'integer'
|
||||
|
||||
// Value of are passed through this before save of tags
|
||||
'normalizer' => '\Conner\Tagging\TaggingUtility::slug',
|
||||
|
||||
// Display value of tags are passed through (for front end display)
|
||||
'displayer' => '\Illuminate\Support\Str::title',
|
||||
|
||||
// Database connection for Conner\Taggable\Tag model to use
|
||||
// 'connection' => 'mysql',
|
||||
|
||||
// When deleting a model, remove all the tags first
|
||||
'untag_on_delete' => true,
|
||||
|
||||
// Auto-delete unused tags from the 'tags' database table (when they are used zero times)
|
||||
'delete_unused_tags' => false,
|
||||
|
||||
// Model to use to store the tags in the database
|
||||
'tag_model'=>'\Conner\Tagging\Model\Tag',
|
||||
|
||||
// Delimiter used within tags
|
||||
'delimiter' => '-',
|
||||
|
||||
// Model to use for the relation between tags and tagged records
|
||||
'tagged_model' => '\Conner\Tagging\Model\Tagged',
|
||||
];
|
||||
91
config/teamwork.php
Normal file
91
config/teamwork.php
Normal file
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of Teamwork
|
||||
*
|
||||
* @license MIT
|
||||
* @package Teamwork
|
||||
*/
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auth Model
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the Auth model used by Teamwork.
|
||||
|
|
||||
*/
|
||||
'user_model' => config('auth.providers.users.model', App\User::class),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Teamwork users Table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the users table name used by Teamwork.
|
||||
|
|
||||
*/
|
||||
'users_table' => 'users',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Teamwork Team Model
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the Team model used by Teamwork to create correct relations. Update
|
||||
| the team if it is in a different namespace.
|
||||
|
|
||||
*/
|
||||
'team_model' => Mpociot\Teamwork\TeamworkTeam::class,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Teamwork teams Table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the teams table name used by Teamwork to save teams to the database.
|
||||
|
|
||||
*/
|
||||
'teams_table' => 'teams',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Teamwork team_user Table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the team_user table used by Teamwork to save assigned teams to the
|
||||
| database.
|
||||
|
|
||||
*/
|
||||
'team_user_table' => 'team_user',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| User Foreign key on Teamwork's team_user Table (Pivot)
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
'user_foreign_key' => 'id',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Teamwork Team Invite Model
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the Team Invite model used by Teamwork to create correct relations.
|
||||
| Update the team if it is in a different namespace.
|
||||
|
|
||||
*/
|
||||
'invite_model' => Mpociot\Teamwork\TeamInvite::class,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Teamwork team invites Table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the team invites table name used by Teamwork to save sent/pending
|
||||
| invitation into teams to the database.
|
||||
|
|
||||
*/
|
||||
'team_invites_table' => 'team_invites',
|
||||
];
|
||||
9
config/translatable.php
Normal file
9
config/translatable.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* If a translation has not been set for a given locale, use this locale instead.
|
||||
*/
|
||||
'fallback_locale' => 'en',
|
||||
];
|
||||
230
config/twigbridge.php
Normal file
230
config/twigbridge.php
Normal file
@@ -0,0 +1,230 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the TwigBridge package.
|
||||
*
|
||||
* @copyright Robert Crowe <hello@vivalacrowe.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Configuration options for Twig.
|
||||
*/
|
||||
return [
|
||||
|
||||
'twig' => [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| File extension for Twig view files.
|
||||
|
|
||||
*/
|
||||
'extension' => 'twig',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Accepts all Twig environment configuration options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| http://twig.sensiolabs.org/doc/api.html#environment-options
|
||||
|
|
||||
*/
|
||||
'environment' => [
|
||||
|
||||
// When set to true, the generated templates have a __toString() method
|
||||
// that you can use to display the generated nodes.
|
||||
// default: false
|
||||
'debug' => env('APP_DEBUG', false),
|
||||
|
||||
// The charset used by the templates.
|
||||
// default: utf-8
|
||||
'charset' => 'utf-8',
|
||||
|
||||
// The base template class to use for generated templates.
|
||||
// default: TwigBridge\Twig\Template
|
||||
'base_template_class' => 'TwigBridge\Twig\Template',
|
||||
|
||||
// An absolute path where to store the compiled templates, or false to disable caching. If null
|
||||
// then the cache file path is used.
|
||||
// default: cache file storage path
|
||||
'cache' => null,
|
||||
|
||||
// When developing with Twig, it's useful to recompile the template
|
||||
// whenever the source code changes. If you don't provide a value
|
||||
// for the auto_reload option, it will be determined automatically based on the debug value.
|
||||
'auto_reload' => true,
|
||||
|
||||
// If set to false, Twig will silently ignore invalid variables
|
||||
// (variables and or attributes/methods that do not exist) and
|
||||
// replace them with a null value. When set to true, Twig throws an exception instead.
|
||||
// default: false
|
||||
'strict_variables' => false,
|
||||
|
||||
// If set to true, auto-escaping will be enabled by default for all templates.
|
||||
// default: 'html'
|
||||
'autoescape' => 'html',
|
||||
|
||||
// A flag that indicates which optimizations to apply
|
||||
// (default to -1 -- all optimizations are enabled; set it to 0 to disable)
|
||||
'optimizations' => -1,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Safe Classes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When set, the output of the `__string` method of the following classes will not be escaped.
|
||||
| default: Laravel's Htmlable, which the HtmlString class implements.
|
||||
|
|
||||
*/
|
||||
'safe_classes' => [
|
||||
\Illuminate\Contracts\Support\Htmlable::class => ['html'],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These will always be passed in and can be accessed as Twig variables.
|
||||
| NOTE: these will be overwritten if you pass data into the view with the same key.
|
||||
|
|
||||
*/
|
||||
'globals' => [],
|
||||
],
|
||||
|
||||
'extensions' => [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Extensions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabled extensions.
|
||||
|
|
||||
| `Twig\Extension\DebugExtension` is enabled automatically if twig.debug is TRUE.
|
||||
|
|
||||
*/
|
||||
'enabled' => [
|
||||
'TwigBridge\Extension\Loader\Facades',
|
||||
'TwigBridge\Extension\Loader\Filters',
|
||||
'TwigBridge\Extension\Loader\Functions',
|
||||
|
||||
'TwigBridge\Extension\Laravel\Auth',
|
||||
'TwigBridge\Extension\Laravel\Config',
|
||||
'TwigBridge\Extension\Laravel\Dump',
|
||||
'TwigBridge\Extension\Laravel\Input',
|
||||
'TwigBridge\Extension\Laravel\Session',
|
||||
'TwigBridge\Extension\Laravel\Str',
|
||||
'TwigBridge\Extension\Laravel\Translator',
|
||||
'TwigBridge\Extension\Laravel\Url',
|
||||
'TwigBridge\Extension\Laravel\Model',
|
||||
// 'TwigBridge\Extension\Laravel\Gate',
|
||||
|
||||
// 'TwigBridge\Extension\Laravel\Form',
|
||||
// 'TwigBridge\Extension\Laravel\Html',
|
||||
// 'TwigBridge\Extension\Laravel\Legacy\Facades',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Facades
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Available facades. Access like `{{ Config.get('foo.bar') }}`.
|
||||
|
|
||||
| Each facade can take an optional array of options. To mark the whole facade
|
||||
| as safe you can set the option `'is_safe' => true`. Setting the facade as
|
||||
| safe means that any HTML returned will not be escaped.
|
||||
|
|
||||
| It is advisable to not set the whole facade as safe and instead mark the
|
||||
| each appropriate method as safe for security reasons. You can do that with
|
||||
| the following syntax:
|
||||
|
|
||||
| <code>
|
||||
| 'Form' => [
|
||||
| 'is_safe' => [
|
||||
| 'open'
|
||||
| ]
|
||||
| ]
|
||||
| </code>
|
||||
|
|
||||
| The values of the `is_safe` array must match the called method on the facade
|
||||
| in order to be marked as safe.
|
||||
|
|
||||
*/
|
||||
'facades' => [],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Functions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Available functions. Access like `{{ secure_url(...) }}`.
|
||||
|
|
||||
| Each function can take an optional array of options. These options are
|
||||
| passed directly to `Twig\TwigFunction`.
|
||||
|
|
||||
| So for example, to mark a function as safe you can do the following:
|
||||
|
|
||||
| <code>
|
||||
| 'link_to' => [
|
||||
| 'is_safe' => ['html']
|
||||
| ]
|
||||
| </code>
|
||||
|
|
||||
| The options array also takes a `callback` that allows you to name the
|
||||
| function differently in your Twig templates than what it's actually called.
|
||||
|
|
||||
| <code>
|
||||
| 'link' => [
|
||||
| 'callback' => 'link_to'
|
||||
| ]
|
||||
| </code>
|
||||
|
|
||||
*/
|
||||
'functions' => [
|
||||
'elixir',
|
||||
'head',
|
||||
'last',
|
||||
'mix',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Filters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Available filters. Access like `{{ variable|filter }}`.
|
||||
|
|
||||
| Each filter can take an optional array of options. These options are
|
||||
| passed directly to `Twig\TwigFilter`.
|
||||
|
|
||||
| So for example, to mark a filter as safe you can do the following:
|
||||
|
|
||||
| <code>
|
||||
| 'studly_case' => [
|
||||
| 'is_safe' => ['html']
|
||||
| ]
|
||||
| </code>
|
||||
|
|
||||
| The options array also takes a `callback` that allows you to name the
|
||||
| filter differently in your Twig templates than what is actually called.
|
||||
|
|
||||
| <code>
|
||||
| 'snake' => [
|
||||
| 'callback' => 'snake_case'
|
||||
| ]
|
||||
| </code>
|
||||
|
|
||||
*/
|
||||
'filters' => [
|
||||
'get' => 'data_get',
|
||||
],
|
||||
],
|
||||
];
|
||||
49
config/user-verification.php
Normal file
49
config/user-verification.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|---------------------------------------------------------------------------
|
||||
| E-mail options
|
||||
|---------------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
'email' => [
|
||||
/*
|
||||
|-----------------------------------------------------------------------
|
||||
| Email View Type
|
||||
|-----------------------------------------------------------------------
|
||||
|
|
||||
| This option defines the email view type.
|
||||
|
|
||||
| Supported: "default", "markdown"
|
||||
|
|
||||
*/
|
||||
'type' => 'default',
|
||||
|
||||
/*
|
||||
|-----------------------------------------------------------------------
|
||||
| Custom view name
|
||||
|-----------------------------------------------------------------------
|
||||
|
|
||||
| This option defines a custom view name.
|
||||
|
|
||||
*/
|
||||
'view' => null,
|
||||
],
|
||||
|
||||
/*
|
||||
|---------------------------------------------------------------------------
|
||||
| Log the user in after verification
|
||||
|---------------------------------------------------------------------------
|
||||
|
|
||||
| This option defines if the user should be logged in after verification.
|
||||
| USE WITH CAUTION as it may introduce security issues in your app.
|
||||
| By default Laravel log in a new registered user.
|
||||
|
|
||||
| Supported: (bool) "true", "false"
|
||||
|
|
||||
*/
|
||||
'auto-login' => false,
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user