-
Notifications
You must be signed in to change notification settings - Fork 586
/
Copy pathcapsules.php
83 lines (73 loc) · 3.54 KB
/
capsules.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
return [
'path' => app_path('Twill/Capsules'),
'namespaces' => [
'subdir' => '',
'base' => 'App\Twill\Capsules',
'models' => 'Models',
'repositories' => 'Repositories',
'controllers' => 'Http\Controllers',
'requests' => 'Http\Requests',
],
'list' => [
// ['name' => 'Artists', 'enabled' => true],
// ['name' => 'Posts', 'enabled' => true],
],
'capsule_config_prefix' => 'twill.capsule',
'capsule_repository_prefix' => env('CAPSULE_REPOSITORY_PREFIX', 'area17')
];
/// To fully override this config:
///
//[
// 'modules' => [
// 'path' => app_path('Twill/Modules'),
//
// 'loaded' => true,
//
// 'list' => [
// [
// 'name' => 'Posts',
// 'enabled' => true,
// 'module' => 'posts',
// 'plural' => 'Posts',
// 'singular' => 'Post',
// 'namespace' => 'App\Twill\Capsules\Posts',
// 'models' => 'App\Twill\Capsules\Posts\Models',
// 'model' => 'App\Twill\Capsules\Posts\Models\Post',
// 'repositories' => 'App\Twill\Capsules\Posts\Repositories',
// 'controllers' => 'App\Twill\Capsules\Posts\Http\Controllers',
// 'requests' => 'App\Twill\Capsules\Posts\Http\Requests',
// 'psr4_path' =>
// '/app-dir/vendor/area17/twill/vendor/orchestra/testbench-core/laravel/app/Twill/Capsules/Posts/app',
// 'root_path' =>
// '/app-dir/vendor/area17/twill/vendor/orchestra/testbench-core/laravel/app/Twill/Capsules/Posts',
// 'migrations_dir' =>
// '/app-dir/vendor/area17/twill/vendor/orchestra/testbench-core/laravel/app/Twill/Capsules/Posts/database/migrations',
// 'views_dir' =>
// '/app-dir/vendor/area17/twill/vendor/orchestra/testbench-core/laravel/app/Twill/Capsules/Posts/resources/views',
// 'view_prefix' => 'Posts.resources.views.admin',
// 'routes_file' =>
// '/app-dir/vendor/area17/twill/vendor/orchestra/testbench-core/laravel/app/Twill/Capsules/Posts/routes/twill.php',
// 'models_dir' =>
// '/app-dir/vendor/area17/twill/vendor/orchestra/testbench-core/laravel/app/Twill/Capsules/Posts/app/Data/Models',
// 'translation' =>
// 'App\Twill\Capsules\Posts\Models\PostTranslation',
// 'slug' => 'App\Twill\Capsules\Posts\Models\PostSlug',
// 'revision' =>
// 'App\Twill\Capsules\Posts\Models\PostRevision',
// 'repository' =>
// 'App\Twill\Capsules\Posts\Repositories\PostRepository',
// 'repositories_dir' =>
// '/app-dir/vendor/area17/twill/vendor/orchestra/testbench-core/laravel/app/Twill/Capsules/Posts/app/Data/Repositories',
// 'controller' =>
// 'App\Twill\Capsules\Posts\Http\Controllers\PostController',
// 'controllers_dir' =>
// '/app-dir/vendor/area17/twill/vendor/orchestra/testbench-core/laravel/app/Twill/Capsules/Posts/app/Http/Controllers',
// 'formRequest' =>
// 'App\Twill\Capsules\Posts\Http\Requests\PostRequest',
// 'requests_dir' =>
// '/app-dir/vendor/area17/twill/vendor/orchestra/testbench-core/laravel/app/Twill/Capsules/Posts/app/Http/Requests',
// ],
// ],
// ],
//];