Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi committed Nov 23, 2022
1 parent 09468d1 commit c6c6885
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c6c6885

Please sign in to comment.