This repository was archived by the owner on Dec 14, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ Tinx calculates shortcut names via the implementation defined by your `strategy`
85
85
86
86
Lets say you have two models: ` Car ` and ` Crocodile ` .
87
87
88
- If your naming ` strategy ` was set to ** pascal** (default), Tinx would define the following shortcuts in your session:
88
+ If your naming ` strategy ` was set to ` pascal ` (default), Tinx would define the following shortcuts in your session:
89
89
90
90
- Car: ` $c ` , ` $c_ ` , ` c() `
91
91
- Crocodile: ` $cr ` , ` $cr_ ` , ` cr() `
@@ -108,6 +108,20 @@ To filter the shortcuts returned by `names()`, simply pass your filter terms lik
108
108
names('car', 'user')
109
109
```
110
110
111
+ ### Fast factories
112
+
113
+ Shortcut methods are a great way to create factory models fast.
114
+
115
+ ``` php
116
+ // Instead of this…
117
+ factory(App\User::class)->create()
118
+
119
+ // …try substituting a shortcut method, like this:
120
+ factory(u())->create()
121
+ ```
122
+
123
+ When tinkering, every keystroke counts!
124
+
111
125
## Configuration
112
126
113
127
Tinx contains a number of helpful configuration options.
You can’t perform that action at this time.
0 commit comments