Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages

Readme

Laravel Nova Fields Agent

GitHub license GitHub issues Total Downloads

Description

This field give the ability to hide fields from your resources table on mobile screens for a better responsive concept.

Support

.

Thank you for considering supporting the development of this package! If you'd like to contribute, you can buy me a coffee or sponsor me to help keep me motivated to continue improving this package. You can also support the project by starring ⭐ the repository.

To buy me a coffee, click the button below:

Buy Me A Coffee

Screenshots

Screenshot

Installation

This package can be installed through Composer.

composer require outhebox/nova-fields-agent

Example Usage

Note: All Fields Supported "Text Field only for example".

// Important !!!
use Outhebox\NovaFieldsAgent\HasNovaFieldsAgent;

class Example extends Resource
{
    use HasNovaFieldsAgent; // Important !!!

    /**
     * Get the fields displayed by the resource.
     *
     * @param  \Illuminate\Http\Request  $requestµµ
     * @return array
     */
    public function fields(Request $request)
    {
        Text::make('ExampleField')
            ->hideFromDetailOnMobile() // Hide the field from details page on Mobile
            ->hideFromDetailOnTablet() // Hide the field from details page on Tablet
            ->HideFromIndexOnMobile() // Hide the field from index on Mobile
            ->HideFromIndexOnTablet() // Hide the field from index on Tablet
            ->sortable(),
    }
}

License

Laravel Nova Fields Agent is licensed under The MIT License (MIT) .

Donate

If you like this package, you can show your appreciation 💜 by donating any amount via Patreon to support ongoing development.

Reviews

By Oleksandr Roskovynskyi on January 19, 2020

The row unfolded button that was presented in the animation is not implemented!!! Thank you very much for working out! Great adaptation for the tables. <img src="https://user-images.githubusercontent.com/57599426/72677602-e76ec580-3aa6-11ea-9724-fe58118a1c77.png">

Back to Top
Added 6 years ago
Last updated 6 Years Ago
Version v1.1
Composer
outhebox/nova-fields-agent
GitHub stars 10
Packagist downloads 1,065

Favorites

11 users favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
2 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas