https://github.com/mohmmedashraf/nova-fields-agent
This field gives the ability to hide fields from your resources table on mobile screens for a better responsive concept
https://github.com/mohmmedashraf/nova-fields-agent
laravel laravel-framework laravel-nova laravel-package laravel8 nova php
Last synced: 11 months ago
JSON representation
This field gives the ability to hide fields from your resources table on mobile screens for a better responsive concept
- Host: GitHub
- URL: https://github.com/mohmmedashraf/nova-fields-agent
- Owner: MohmmedAshraf
- License: mit
- Created: 2019-12-19T06:22:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T11:41:58.000Z (over 1 year ago)
- Last Synced: 2025-07-25T07:53:52.335Z (12 months ago)
- Topics: laravel, laravel-framework, laravel-nova, laravel-package, laravel8, nova, php
- Language: PHP
- Homepage: https://twitter.com/M7ammed_Ashraf
- Size: 2.53 MB
- Stars: 11
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Nova Fields Agent
[](https://github.com/MohmmedAshraf/nova-fields-agent/blob/master/LICENSE.md)
[](https://github.com/MohmmedAshraf/nova-fields-agent/issues)
[](https://packagist.org/packages/outhebox/nova-fields-agent)
## Description
This field give the ability to hide fields from your resources table on mobile screens for a better responsive concept.
## Support
[
](https://outhebox.dev/github-ad-click/nova-fields-agent).
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:
## Screenshots

## Installation
This package can be installed through Composer.
```bash
composer require outhebox/nova-fields-agent
```
## Example Usage
Note: All Fields Supported "Text Field only for example".
```php
// 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)](LICENSE.md) .
## Donate
If you like this package, you can show your appreciation 💜 by [donating any amount via Patreon](https://www.patreon.com/m_ashraf) to support ongoing development.
