|
77 | 77 | *
|
78 | 78 | * $state = [
|
79 | 79 | * 'createdBy' => [
|
80 |
| - * ['model.user:100,id'], |
| 80 | + * ['model.User:100,id'], |
81 | 81 | * ],
|
82 | 82 | * ]
|
83 | 83 | *
|
|
98 | 98 | * aliases as defined below. Parameters for the param_alias should be wrapped in
|
99 | 99 | * parentheses as shown below.
|
100 | 100 | *
|
101 |
| - * This example will use the `carbon` alias (defined below - commented out) to make a |
| 101 | + * This example will use the `Carbon` alias (defined below - commented out) to make a |
102 | 102 | * `Carbon` instance with the value `2023-12-25 23:59:59`, and will be passed to the
|
103 | 103 | * `endsAt` method on the factory:
|
104 | 104 | * $state = [
|
105 | 105 | * 'endsAt' => [
|
106 |
| - * ['carbon(2023-12-25 23:59:59)'], |
| 106 | + * ['Carbon(2023-12-25 23:59:59)'], |
107 | 107 | * ],
|
108 | 108 | * ]
|
109 | 109 | *
|
110 |
| - * This example will use the carbon alias to make 2 instances, each with the date values |
| 110 | + * This example will use the Carbon alias to make 2 instances, each with the date values |
111 | 111 | * as shown, and both instances will then be passed, in the order they are defined, to the `liveBetween` method on the factory class:
|
112 | 112 | * $state = [
|
113 | 113 | * 'liveBetween' => [
|
114 |
| - * ['carbon(2023-01-01 00:00:00)', 'carbon(2023-12-25 23:59:59)'], |
| 114 | + * ['Carbon(2023-01-01 00:00:00)', 'Carbon(2023-12-25 23:59:59)'], |
115 | 115 | * ],
|
116 | 116 | * ]
|
117 | 117 | *
|
|
156 | 156 | * from your Playwright test suite.
|
157 | 157 | */
|
158 | 158 | 'model_aliases' => [
|
159 |
| - // 'user' => 'App\\Models\\User', |
160 |
| - // 'post' => 'App\\Models\\Post', |
| 159 | + // 'User' => 'App\\Models\\User', |
| 160 | + // 'Post' => 'App\\Models\\Post', |
161 | 161 | ],
|
162 | 162 |
|
163 | 163 | 'param_aliases' => [
|
164 |
| - // 'carbon' => fn($date) => \Carbon\Carbon::create($date), |
165 |
| - // 'collect' => fn($items) => \Illuminate\Support\Collection::make(...$items), |
| 164 | + // 'Carbon' => fn($date) => \Carbon\Carbon::create($date), |
| 165 | + // 'collect' => fn($items) => collect(...$items), |
166 | 166 | ],
|
167 | 167 |
|
168 | 168 | ],
|
|
0 commit comments