|
3 | 3 | // config for Z3d0X/FilamentFabricator |
4 | 4 | return [ |
5 | 5 | 'routing' => [ |
| 6 | + /** |
| 7 | + * Whether routing should be automatically handled. |
| 8 | + * Disable if you want finer and manual control over how the routing to your pages is done. |
| 9 | + */ |
6 | 10 | 'enabled' => true, |
| 11 | + |
| 12 | + /** |
| 13 | + * The prefix to use for all pages' routes. |
| 14 | + * Leave to null if you don't want them to have a prefix. |
| 15 | + * A prefix set to '/pages' means that a page of slug 'page-1' |
| 16 | + * would be accessed through `/pages/page-1` if routing is enabled. |
| 17 | + */ |
7 | 18 | 'prefix' => null, // /pages |
8 | 19 | ], |
9 | 20 |
|
10 | 21 | 'layouts' => [ |
| 22 | + /** |
| 23 | + * The base namespace for all your |
| 24 | + * filament-fabricator page layouts |
| 25 | + */ |
11 | 26 | 'namespace' => 'App\\Filament\\Fabricator\\Layouts', |
| 27 | + |
| 28 | + /** |
| 29 | + * The path to your layouts (folder or glob) |
| 30 | + * This is used when auto-registering them |
| 31 | + */ |
12 | 32 | 'path' => app_path('Filament/Fabricator/Layouts'), |
| 33 | + |
| 34 | + /** |
| 35 | + * A list of layout classes you want to manually register |
| 36 | + * in addition to those that are auto-registered |
| 37 | + */ |
13 | 38 | 'register' => [ |
14 | 39 | // |
15 | 40 | ], |
16 | 41 | ], |
17 | 42 |
|
18 | 43 | 'page-blocks' => [ |
| 44 | + /** |
| 45 | + * The base namespace for all your filament-fabricator page blocks |
| 46 | + */ |
19 | 47 | 'namespace' => 'App\\Filament\\Fabricator\\PageBlocks', |
| 48 | + |
| 49 | + /** |
| 50 | + * The path to your blocks (folder or glob) |
| 51 | + * This is used when auto-registering them |
| 52 | + */ |
20 | 53 | 'path' => app_path('Filament/Fabricator/PageBlocks'), |
| 54 | + |
| 55 | + /** |
| 56 | + * A list of block classes you want to manually register |
| 57 | + * in addition to those that are auto-registered |
| 58 | + */ |
21 | 59 | 'register' => [ |
22 | 60 | // |
23 | 61 | ], |
24 | 62 | ], |
25 | 63 |
|
| 64 | + /** |
| 65 | + * The middleware(s) to apply to your pages when routing is enabled |
| 66 | + */ |
26 | 67 | 'middleware' => [ |
27 | 68 | 'web', |
28 | 69 | ], |
29 | 70 |
|
| 71 | + /** |
| 72 | + * The page model to be used by the package. |
| 73 | + * Replace this if you ever extend it |
| 74 | + */ |
30 | 75 | 'page-model' => \Z3d0X\FilamentFabricator\Models\Page::class, |
31 | 76 |
|
| 77 | + /** |
| 78 | + * The page filament resource to be used by the package. |
| 79 | + * Replace this if you ever extend it |
| 80 | + */ |
32 | 81 | 'page-resource' => \Z3d0X\FilamentFabricator\Resources\PageResource::class, |
33 | 82 |
|
| 83 | + /** |
| 84 | + * Whether you want to have a view page as part of your PageResource |
| 85 | + */ |
34 | 86 | 'enable-view-page' => false, |
35 | 87 |
|
36 | 88 | /** |
|
47 | 99 | */ |
48 | 100 | 'hook-to-commands' => true, |
49 | 101 |
|
50 | | - /* |
| 102 | + /** |
51 | 103 | * This is the name of the table that will be created by the migration and |
52 | 104 | * used by the above page-model shipped with this package. |
53 | 105 | */ |
|
0 commit comments