Skip to content

update README.md #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@

A clean way to present your model attributes without putting them in the wrong file.


- [Laravel Presenter](#laravel-presenter)
- [Installation](#installation)
- [Usage](#usage)
- [Model Implementation](#model-implementation)
- [Create New Model Presenter class](#create-new-model-presenter-class)
- [Using the `Presenter` Generated Class](#using-the-presenter-generated-class)
- [Example](#example)
- [Adding Another Presenter Type](#adding-another-presenter-type)
- [Testing](#testing)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Security Vulnerabilities](#security-vulnerabilities)
- [Credits](#credits)
- [License](#license)

## Installation

You can install the package via composer:
Expand Down Expand Up @@ -155,8 +171,8 @@ $user->present()->fullName
```
Your application will show the full name from the method you added.

## Adding Another Presenter Type:
Like I said above, by default the type will be `deafult` but, you can add more types as you need.
## Adding Another Presenter Type
Like I said above, by default the type will be `default` but, you can add more types as you need.

Here is an example:

Expand Down