1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
use Illuminate\Routing\Middleware\SubstituteBindings; |
|
|
|
|
4
|
|
|
use Illuminate\Support\Facades\Route; |
|
|
|
|
5
|
|
|
use SaasReady\Http\Controllers\CountryController; |
6
|
|
|
use SaasReady\Http\Controllers\CurrencyController; |
7
|
|
|
use SaasReady\Http\Controllers\DynamicSettingsController; |
8
|
|
|
use SaasReady\Http\Controllers\EventController; |
9
|
|
|
use SaasReady\Http\Controllers\LanguageController; |
10
|
|
|
use SaasReady\Http\Controllers\ReleaseNoteController; |
11
|
|
|
use SaasReady\Http\Controllers\TranslationController; |
12
|
|
|
|
13
|
|
|
Route::prefix(config('saas-ready.route-prefix')) |
|
|
|
|
14
|
|
|
->middleware([ |
15
|
|
|
SubstituteBindings::class, |
16
|
|
|
...config('saas-ready.middlewares'), |
17
|
|
|
]) |
18
|
|
|
->group(function () { |
19
|
|
|
if (config('saas-ready.route-enabled.currencies')) { |
|
|
|
|
20
|
|
|
Route::resource('currencies', CurrencyController::class) |
21
|
|
|
->except(['edit', 'create']); |
22
|
|
|
} |
23
|
|
|
|
24
|
|
|
if (config('saas-ready.route-enabled.countries')) { |
25
|
|
|
Route::resource('countries', CountryController::class) |
26
|
|
|
->except(['edit', 'create']); |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
if (config('saas-ready.route-enabled.languages')) { |
30
|
|
|
Route::resource('languages', LanguageController::class) |
31
|
|
|
->except(['edit', 'create']); |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
if (config('saas-ready.route-enabled.events')) { |
35
|
|
|
Route::resource('events', EventController::class) |
36
|
|
|
->only([ |
37
|
|
|
'index', |
38
|
|
|
'show', |
39
|
|
|
]); |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
if (config('saas-ready.route-enabled.translations')) { |
43
|
|
|
Route::resource('translations', TranslationController::class) |
44
|
|
|
->except(['edit', 'create']); |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
if (config('saas-ready.route-enabled.dynamic-settings')) { |
48
|
|
|
Route::resource('dynamic-settings', DynamicSettingsController::class) |
49
|
|
|
->except(['edit', 'create']) |
50
|
|
|
->parameter('dynamic-setting', 'dynamicSetting'); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
if (config('saas-ready.route-enabled.release-notes')) { |
54
|
|
|
Route::resource('release-notes', ReleaseNoteController::class) |
55
|
|
|
->except(['edit', 'create']) |
56
|
|
|
->parameter('release-note', 'releaseNote'); |
57
|
|
|
} |
58
|
|
|
}); |
59
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths