Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 791d0c7

Browse files
Update README.md
1 parent f68fa59 commit 791d0c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/michael-rubel/laravel-model-mapper/run-tests/main?style=flat-square&label=tests&logo=github)](https://github.com/michael-rubel/laravel-model-mapper/actions)
99
[![PHPStan](https://img.shields.io/github/workflow/status/michael-rubel/laravel-model-mapper/phpstan/main?style=flat-square&label=larastan&logo=laravel)](https://github.com/michael-rubel/laravel-model-mapper/actions)
1010

11-
This package provides functionality to map your model attributes to local class properties that have the same names.
11+
This package provides functionality to map your model attributes to local class properties with the same names.
1212

1313
The package requires PHP `^8.x` and Laravel `^8.67`.
1414

@@ -25,7 +25,10 @@ composer require michael-rubel/laravel-model-mapper
2525
## Usage
2626
```php
2727
use WithModelMapping;
28+
```
2829

30+
Then in constructor or any other method:
31+
```php
2932
$this->mapModelAttributes($model);
3033
```
3134

0 commit comments

Comments
 (0)