You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This template is used for generating Moox packages. Press the Template-Button in GitHub, create your own Laravel and Filament package.
8
6
9
-
<!--/shortdesc-->
10
-
11
-
## Quick Installation
7
+
## Installation
12
8
13
9
These two commmands are all you need to install the package:
14
10
@@ -17,7 +13,7 @@ composer require moox/skeleton
17
13
php artisan skeleton:install
18
14
```
19
15
20
-
Curious what the install command does? See manual installation below.
16
+
More information about the requirements and installation can be found in the [installation guide](docs/INSTALLATION.md).
21
17
22
18
## Using the Template
23
19
@@ -27,189 +23,30 @@ Curious what the install command does? See manual installation below.
27
23
4. Clone the repository locally
28
24
5. Run `php build.php`in the repo's directory and follow the steps
29
25
30
-
After building the package, you can push the changes to GitHub and create an installable package on Packagist.org. Don't forget to adjust the README to your composer namespace.
31
-
32
26
### Config
33
27
34
-
After that the Resource is highly configurable.
35
-
36
-
#### Tabs and Translation
37
-
38
-
Moox Core features like Dynamic Tabs and Translatable Config. See the config file for more details, but as a quick example:
| Define the tabs for the Resource table. They are optional, but
47
-
| pretty awesome to filter the table by certain values.
48
-
| You may simply do a 'tabs' => [], to disable them.
49
-
|
50
-
*/
51
-
52
-
'tabs' => [
53
-
'all' => [
54
-
'label' => 'trans//core::core.all',
55
-
'icon' => 'gmdi-filter-list',
56
-
'query' => [
57
-
[
58
-
'field' => 'deleted_at',
59
-
'operator' => '=',
60
-
'value' => null,
61
-
],
62
-
],
63
-
],
64
-
'published' => [
65
-
'label' => 'trans//core::core.published',
66
-
'icon' => 'gmdi-check-circle',
67
-
'query' => [
68
-
[
69
-
'field' => 'publish_at',
70
-
'operator' => '<=',
71
-
'value' => function () {
72
-
return now();
73
-
},
74
-
],
75
-
[
76
-
'field' => 'deleted_at',
77
-
'operator' => '=',
78
-
'value' => null,
79
-
],
80
-
],
81
-
],
82
-
'scheduled' => [
83
-
'label' => 'trans//core::core.scheduled',
84
-
'icon' => 'gmdi-schedule',
85
-
'query' => [
86
-
[
87
-
'field' => 'publish_at',
88
-
'operator' => '>',
89
-
'value' => function () {
90
-
return now();
91
-
},
92
-
],
93
-
[
94
-
'field' => 'deleted_at',
95
-
'operator' => '=',
96
-
'value' => null,
97
-
],
98
-
],
99
-
],
100
-
'draft' => [
101
-
'label' => 'trans//core::core.draft',
102
-
'icon' => 'gmdi-text-snippet',
103
-
'query' => [
104
-
[
105
-
'field' => 'publish_at',
106
-
'operator' => '=',
107
-
'value' => null,
108
-
],
109
-
[
110
-
'field' => 'deleted_at',
111
-
'operator' => '=',
112
-
'value' => null,
113
-
],
114
-
],
115
-
],
116
-
'deleted' => [
117
-
'label' => 'trans//core::core.deleted',
118
-
'icon' => 'gmdi-delete',
119
-
'query' => [
120
-
[
121
-
'field' => 'deleted_at',
122
-
'operator' => '!=',
123
-
'value' => null,
124
-
],
125
-
],
126
-
],
127
-
],
128
-
],
129
-
```
130
-
131
-
All options for Tabs are explained in [Moox Core docs](https://github.com/mooxphp/core/blob/main/README.md#dynamic-tabs).
132
-
133
-
#### Item Types
134
-
135
-
The item also support 'item' types, means you are able to configure selectable types for your Entity. By default, we provide "Post" and "Page" as example. If you don't want to use types, just empty the array and the field and column become invisible.
0 commit comments