Skip to content

Commit

Permalink
feat: update all third-party generated configs to their latest verions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Apr 28, 2022
1 parent ea48bcc commit 53a62ae
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 57 deletions.
69 changes: 63 additions & 6 deletions app/Ship/Configs/debugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,48 @@
'port' => 2304, // Port to use with the "socket" driver
],

/*
|--------------------------------------------------------------------------
| Editor
|--------------------------------------------------------------------------
|
| Choose your preferred editor to use when clicking file name.
|
| Supported: "phpstorm", "vscode", "vscode-insiders", "vscode-remote",
| "vscode-insiders-remote", "vscodium", "textmate", "emacs",
| "sublime", "atom", "nova", "macvim", "idea", "netbeans",
| "xdebug", "espresso"
|
*/

'editor' => env('DEBUGBAR_EDITOR', 'phpstorm'),

/*
|--------------------------------------------------------------------------
| Remote Path Mapping
|--------------------------------------------------------------------------
|
| If you are using a remote dev server, like Laravel Homestead, Docker, or
| even a remote VPS, it will be necessary to specify your path mapping.
|
| Leaving one, or both of these, empty or null will not trigger the remote
| URL changes and Debugbar will treat your editor links as local files.
|
| "remote_sites_path" is an absolute base path for your sites or projects
| in Homestead, Vagrant, Docker, or another remote development server.
|
| Example value: "/home/vagrant/Code"
|
| "local_sites_path" is an absolute base path for your sites or projects
| on your local computer where your IDE or code editor is running on.
|
| Example values: "/Users/<name>/Code", "C:\Users\<name>\Documents\Code"
|
*/

'remote_sites_path' => env('DEBUGBAR_REMOTE_SITES_PATH', ''),
'local_sites_path' => env('DEBUGBAR_LOCAL_SITES_PATH', ''),

/*
|--------------------------------------------------------------------------
| Vendors
Expand All @@ -67,6 +109,9 @@
| 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.
|
| Note for your request to be identified as ajax requests they must either send the header
| X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header.
*/

'capture_ajax' => true,
Expand Down Expand Up @@ -104,24 +149,24 @@
*/

'collectors' => [
'phpinfo' => false, // Php version
'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' => false, // Views with their data
'views' => true, // Views with their data
'route' => true, // Current route information
'auth' => true, // Display Laravel authentication status
'gate' => true, // Display Laravel Gate checks
'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' => true, // Add the latest log messages
'logs' => false, // Add the latest log messages
'files' => false, // Show the included files
'config' => false, // Display config settings
'cache' => false, // Display cache events
Expand All @@ -147,6 +192,7 @@
'backtrace' => true, // Use a backtrace to find the origin of the query in your files.
'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults)
'timeline' => false, // Add the queries to the timeline
'duration_background' => true, // Show shaded background on each query relative to how long it took to execute.
'explain' => [ // Show EXPLAIN output on queries
'enabled' => false,
'types' => ['SELECT'], // Deprecated setting, is always only SELECT
Expand All @@ -158,6 +204,7 @@
'full_log' => false,
],
'views' => [
'timeline' => false, // Add the views to the timeline (Experimental)
'data' => false, //Note: Can slow down the application, because the data can be quite large..
],
'route' => [
Expand Down Expand Up @@ -214,5 +261,15 @@
| Switches between light and dark theme. If set to auto it will respect system preferences
| Possible values: auto, light, dark
*/
'theme' => 'auto',
'theme' => env('DEBUGBAR_THEME', 'auto'),

/*
|--------------------------------------------------------------------------
| Backtrace stack limit
|--------------------------------------------------------------------------
|
| By default, the DebugBar limits the number of frames returned by the 'debug_backtrace()' function.
| If you need larger stacktraces, you can increase this number. Setting it to 0 will result in no limit.
*/
'debug_backtrace_limit' => 50,
];
1 change: 0 additions & 1 deletion app/Ship/Configs/fractal.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

return [

/*
* The default serializer to be used when performing a transformation. It
* may be left empty to use Fractal's default one. This can either be a
Expand Down
59 changes: 43 additions & 16 deletions app/Ship/Configs/ide-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@

'filename' => '_ide_helper.php',

/*
|--------------------------------------------------------------------------
| Models filename
|--------------------------------------------------------------------------
|
| The default filename for the models helper file
|
*/

'models_filename' => '_ide_helper_models.php',

/*
|--------------------------------------------------------------------------
| Where to write the PhpStorm specific meta file
Expand Down Expand Up @@ -48,7 +59,7 @@
|
*/

'include_factory_builders' => false,
'include_factory_builders' => true,

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -128,7 +139,7 @@
*/

'model_locations' => [
'app/Containers/*/Models',
'app/Containers/*/*/Models',
],

/*
Expand All @@ -144,6 +155,21 @@

],

/*
|--------------------------------------------------------------------------
| Models hooks
|--------------------------------------------------------------------------
|
| Define which hook classes you want to run for models to add custom information
|
| Hooks should implement Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface.
|
*/

'model_hooks' => [
// App\Support\IdeHelper\MyModelHook::class
],

/*
|--------------------------------------------------------------------------
| Extra classes
Expand All @@ -158,18 +184,7 @@
'Session' => ['Illuminate\Session\Store'],
],

'magic' => [
'Log' => [
'debug' => 'Monolog\Logger::addDebug',
'info' => 'Monolog\Logger::addInfo',
'notice' => 'Monolog\Logger::addNotice',
'warning' => 'Monolog\Logger::addWarning',
'error' => 'Monolog\Logger::addError',
'critical' => 'Monolog\Logger::addCritical',
'alert' => 'Monolog\Logger::addAlert',
'emergency' => 'Monolog\Logger::addEmergency',
],
],
'magic' => [],

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -202,7 +217,7 @@
| The value of the array is an array of type mappings. Key is the name of the custom type,
| (for example, "jsonb" from Postgres 9.4) and the value is the name of the corresponding Doctrine2 type (in
| our case it is 'json_array'. Doctrine types are listed here:
| http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html
| https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/types.html#types
|
| So to support jsonb in your models when working with Postgres, just add the following entry to the array below:
|
Expand Down Expand Up @@ -263,7 +278,7 @@
| magic methods and properties.
|
*/
'include_class_docblocks' => false,
'include_class_docblocks' => true,

/*
|--------------------------------------------------------------------------
Expand All @@ -289,4 +304,16 @@
*/
'additional_relation_types' => [],

/*
|--------------------------------------------------------------------------
| Run artisan commands after migrations to generate model helpers
|--------------------------------------------------------------------------
|
| The specified commands should run after migrations are finished running.
|
*/
'post_migrate' => [
'ide-helper:models --nowrite',
],

];
6 changes: 2 additions & 4 deletions app/Ship/Configs/notification.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Default Namespace
|--------------------------------------------------------------------------
|
| Define what channels does all your notifications support.
| Define what channels do all your notifications support.
|
*/
'channels' => [
'database',
// 'mail',
]

],
];
Loading

0 comments on commit 53a62ae

Please sign in to comment.