forked from hotwired-laravel/turbo-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturbo-laravel.php
49 lines (43 loc) · 1.84 KB
/
turbo-laravel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
return [
/*
|--------------------------------------------------------------------------
| Queue Data Broadcasting
|--------------------------------------------------------------------------
|
| This option allows you to control if the broadcast updates to your frontend
| will be queued or not. When this is set to "true" then all the broadcast
| operations will be queued for a better performance of your main code.
|
| By default, it will use queues (if available, because you may use the sync
| driver) unless you're in testing mode. That's because during a test the
| app is running inside a transaction, so broadcasts wouldn't dispatch.
|
*/
'queue' => env('APP_ENV', 'production') !== 'testing',
/*
|--------------------------------------------------------------------------
| Root Model Namespaces
|--------------------------------------------------------------------------
|
| When generating DOM IDs for models, we need to strip out the root namespaces from the model's FQCN. Please,
| if you use non-conventional folder structures, make sure you add your custom namespaces to this list. The
| first one that matches a "starts with" check will be used and removed from the model's FQCN for DOM IDs.
|
*/
'models_namespace' => [
'App\\Models\\',
'App\\',
],
/*
|--------------------------------------------------------------------------
| Automatically Register Turbo Middleware
|--------------------------------------------------------------------------
|
| When set to `true` the TurboMiddleware will be automatically
| *prepended* to the web routes middleware stack. If you want
| to disable this behavior, set this to false.
|
*/
'automatically_register_middleware' => true,
];