Skip to content

Commit

Permalink
Updated first day of week docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Oct 28, 2023
1 parent 942eecc commit 6f6c951
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,7 @@ DateTimePicker::make('Event Date', 'date')
->instructions('Add the event\'s start date and time.')
->displayFormat('d-m-Y H:i')
->returnFormat('d-m-Y H:i')
->firstDayOfWeek(0) // with Sunday 0 and Monday as 1
->weekStartsOnMonday() // or
->weekStartsOnSunday() // or
->firstDayOfWeek(1) // Sunday is 0, Monday is 1, or use `weekStartsOnMonday` or `weekStartsOnSunday`
->required()
```

Expand Down Expand Up @@ -867,9 +865,7 @@ The `weekStartsOn` method has been renamed to `firstDayOfWeek`.

```diff
-DatePicker::make('Date')->weekStartsOn(1)
+DatePicker::make('Date')->firstDayOfWeek(1) // or
+DatePicker::make('Date')->weekStartsOnMonday() // or
+DatePicker::make('Date')->weekStartsOnSunday() // or
+DatePicker::make('Date')->firstDayOfWeek(1) // or use `weekStartsOnMonday` or `weekStartsOnSunday`
```

The `prepend` method has been renamed to `prefix`.
Expand Down

0 comments on commit 6f6c951

Please sign in to comment.