Download the PHP package kraenkvisuell/nova-tabs without Composer
On this page you can find all versions of the php package kraenkvisuell/nova-tabs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kraenkvisuell/nova-tabs
More information about kraenkvisuell/nova-tabs
Files in kraenkvisuell/nova-tabs
Informations about the package nova-tabs
Laravel Nova Tabs Package
This is a fork from https://github.com/eminiarts/nova-tabs. All the credit for this package goes to them.
We just forked it because development seems to have halted on the repo, and we needed to make some urgent changes. We intend to maintain this package, though, and when we are satisfied with its status, we might throw it up on novapackages (as yet another Laravel Nova Tabs Package).
- Installation
- Usage
- Tabs Panel
- Tabs Panel with Toolbar
- Relationship Tabs
- Combine Fields and Relations in Tabs
- Actions in Tabs
- Tabs on Edit View
- Customization
- Upgrade to 1.0.0
Installation
You can install the package in to a Laravel app that uses Nova via composer:
Usage
Tabs Panel
You can group Fields of a Resource into Tabs.
Tabs with Toolbar
If you are only using Tabs without another default Panel, you can set withToolbar
to true
.
Relationship Tabs
You can also group Relations into Tabs. Make sure to use the AvailableTabFields
Trait in your Nova Resource.
Combine Fields and Relations in Tabs
Actions in Tabs
If your Model uses the Laravel\Nova\Actions\Actionable
Trait you can put the Actions into a Tab like this:
Tabs on Edit View
If you want to show Tabs on the Edit View, use the TabsOnEdit
Trait in your Resource.
Customization
By default, the Tabs component moves the search input and the create button to the tabs. If you have a lot of tabs, you can move them back down to its own line:
Set ->defaultSearch(true)
to revert it to its default.
Upgrade to 1.0.0
Thanks to dkulyk/nova-tabs the Package got a lot simpler.
- No need to use a Trait anymore. Remove all
AvailableTabFields
Traits in your Resources. - Everything is in
Tabs
now. There is noTabsPanel
anymore. Remove allTabsPanels
and adjust your Fields according to this Readme.