Skip to content

Commit 5b0db71

Browse files
committed
wip
1 parent da3ec28 commit 5b0db71

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

config/laravel-playwright.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
*
7878
* $state = [
7979
* 'createdBy' => [
80-
* ['model.user:100,id'],
80+
* ['model.User:100,id'],
8181
* ],
8282
* ]
8383
*
@@ -98,20 +98,20 @@
9898
* aliases as defined below. Parameters for the param_alias should be wrapped in
9999
* parentheses as shown below.
100100
*
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
102102
* `Carbon` instance with the value `2023-12-25 23:59:59`, and will be passed to the
103103
* `endsAt` method on the factory:
104104
* $state = [
105105
* 'endsAt' => [
106-
* ['carbon(2023-12-25 23:59:59)'],
106+
* ['Carbon(2023-12-25 23:59:59)'],
107107
* ],
108108
* ]
109109
*
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
111111
* as shown, and both instances will then be passed, in the order they are defined, to the `liveBetween` method on the factory class:
112112
* $state = [
113113
* '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)'],
115115
* ],
116116
* ]
117117
*
@@ -156,13 +156,13 @@
156156
* from your Playwright test suite.
157157
*/
158158
'model_aliases' => [
159-
// 'user' => 'App\\Models\\User',
160-
// 'post' => 'App\\Models\\Post',
159+
// 'User' => 'App\\Models\\User',
160+
// 'Post' => 'App\\Models\\Post',
161161
],
162162

163163
'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),
166166
],
167167

168168
],

0 commit comments

Comments
 (0)