Skip to content

Commit 3475659

Browse files
author
Andrey Helldar
authored
Merge pull request #58 from adelf/patch-1
Create ide.json
2 parents 84b901c + 0cd7f4d commit 3475659

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

ide.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
3+
"codeGenerations": [
4+
{
5+
"id": "dragon-code.create-action",
6+
"name": "Create Migration Action",
7+
"inputFilter": "migration",
8+
"files": [
9+
{
10+
"directory": "/database/actions",
11+
"name": "${CURRENT_TIME|format:yyyy_MM_dd_HHmmss}_${INPUT_CLASS|className|snakeCase}.php",
12+
"template": {
13+
"type": "stub",
14+
"path": "resources/stubs/action-named.stub",
15+
"parameters": {
16+
"DummyClass": "${INPUT_FQN|className}"
17+
}
18+
}
19+
}
20+
]
21+
},
22+
{
23+
"id": "dragon-code.create-anonymous-action",
24+
"name": "Create Anonymous Migration Action",
25+
"inputFilter": "migration",
26+
"files": [
27+
{
28+
"directory": "/database/actions",
29+
"name": "${CURRENT_TIME|format:yyyy_MM_dd_HHmmss}_${INPUT_CLASS|className|snakeCase}.php",
30+
"template": {
31+
"type": "stub",
32+
"path": "resources/stubs/action-anonymous.stub"
33+
}
34+
}
35+
]
36+
}
37+
]
38+
}

0 commit comments

Comments
 (0)