Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Dillingham committed Apr 27, 2019
1 parent 3e1e4bf commit af56596
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ class RecentUsers extends ListCard

Display resource [subtitle](https://nova.laravel.com/docs/2.0/search/global-search.html#subtitles) beneath the title
```php
->subtitle(),
->subtitle(),
```
or display resource proporties beneath the title
```php
->subtitle('city'),
->subtitle('city'),
```

**Timestamps**
Expand Down Expand Up @@ -137,22 +137,22 @@ You can link to a urL instead of using viewAll:

Display resource values on the right side
```php
->value('city'),
->value('city'),
```

**Aggregated Values**

Add counts of relationships:
```php
->resource(Category::class)
->withCount('posts')
->value('category_posts'),
->resource(Category::class)
->withCount('posts')
->value('category_posts'),
```
Add sum of relationship column:
```php
->resource(User::class)
->withSum('orders', 'total')
->value('orders_sum'),
->resource(User::class)
->withSum('orders', 'total')
->value('orders_sum'),
```

**Value formatting**
Expand Down

0 comments on commit af56596

Please sign in to comment.