From c6c6885067d438e1bade059489a7b0b79c6791ca Mon Sep 17 00:00:00 2001 From: Bastien Philippe Date: Wed, 23 Nov 2022 11:58:15 +0100 Subject: [PATCH] Update readme --- README.md | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/README.md b/README.md index 3292c2b..464cbce 100644 --- a/README.md +++ b/README.md @@ -91,31 +91,6 @@ $dateTime = new Carbon\ImmutableCarbon($date); // ok ## Extensions -### DateExtension - -Provides return type for various `Illuminate\Support\Facades\Date` methods - -```php -use Carbon\FactoryImmutable; -use Illuminate\Support\Facades\Date; - -Date::use(FactoryImmutable::class); -Date::create(2020, 1, 1); // CarbonImmutable -Date::createFromFormat('Y-m-d', '2020-01-01'); // CarbonImmutable|false -``` - -### NowAndTodayExtension - -Provides return type for `now()` and `today()` helpers. - -```php -use Carbon\FactoryImmutable; -use Illuminate\Support\Facades\Date; - -Date::use(FactoryImmutable::class); -now(); // CarbonImmutable -``` - ### RequestDateExtension Provides return type for `\Illuminate\Support\Request::date()` method.