$date_string = '2021-12-25 12:30:00'; $date = Carbon::parse($date_string); echo $date->dayOfWeek; // Outputs SaturdayThis code example illustrates the usage of Carbon parse to convert a given date string into a Carbon instance. The resulting Carbon object can then be manipulated using the various methods of the Carbon class. In this case, we are using the `dayOfWeek` property of the Carbon object to get the day of the week that corresponds to the given date (which is a Saturday). Overall, Carbon is a very useful package library for working with dates and times in PHP, and the Carbon parse method can be a powerful tool for handling date strings.