Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

manu123's avatar

rsource into a tab

I need to show in a tab (I use "eminiarts/nova-tabs") a specific resource (example: users tab, and the user resource is displayed). How can I do?

0 likes
1 reply
vincent15000's avatar

The documentation gives you this example.

https://github.com/eminiarts/nova-tabs#relationship-tabs

// in app/Nova/Resource.php

use Eminiarts\Tabs\Traits\HasTabs;
use Eminiarts\Tabs\Tabs;

class User extends Resource
{
    use HasTabs;
    
    public function fields(Request $request)
    {
       return [
   
           new Tabs('Some Title', [
               'Balance'    => [
                   Number::make('Balance', 'balance'),
                   Number::make('Total', 'total'),
               ],
               'Other Info' => [
                   Number::make('Paid To Date', 'paid_to_date'),
               ],
           ]),
       ];
   }
}

Please or to participate in this conversation.