Home / Snippets / How to Group Resource in Laravel Nova
How to Group Resource in Laravel Nova cover

How to Group Resource in Laravel Nova

1.2K

3 years ago

0 comments

To group a resource, you can specify the static "$group" property available to each Nova Resource.

Laravel Nova Group Pages


For example, if you want to group a "Pages" Nova resource then you can write it as follows.
/**
 * The logical group associated with the resource.
 *
 * @var string
 */
public static $group = 'Pages';

Laravel Nova Group Category


To group a resource that contains a category and as such, you can name it as "Category".
/**
 * The logical group associated with the resource.
 *
 * @var string
 */
public static $group = 'Category';

Nova Resource Grouping Preview


Laravel Nova Resource Grouping
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

If you like our tutorial, support us by being our Patreon or buy us some coffee ☕️

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this