Skip to content

Commit

Permalink
Added better readme
Browse files Browse the repository at this point in the history
  • Loading branch information
addgod committed Jan 2, 2022
1 parent a5524ef commit e0930fe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ abstract class Resource extends NovaResource
use Breadcrumbs;
```

And to define the parent that should be shown add the following function to any resource.

```php
/**
* Get the parent to be displayed in the breadcrumbs.
*
* @return \Illuminate\Database\Eloquent\Model|null
*/
public function breadcrumbParent()
{
return $this->model()->parentModel;
}
```

## Customisation

You can disable the bundled styles and load your own by adding the following method to the call:
Expand Down

0 comments on commit e0930fe

Please sign in to comment.