Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 4 hours 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T12:42:03.000Z (about 4 years ago)
- Last Synced: 2024-09-23T16:31:43.974Z (1 day ago)
- Topics: laravel, laravel-framework, laravel-nova, laravel-package, laravel8, nova, php
- Language: PHP
- Homepage: https://twitter.com/M7ammed_Ashraf
- Size: 2.52 MB
- Stars: 11
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Nova Fields Agent
[![GitHub license](https://img.shields.io/github/license/MohmmedAshraf/nova-fields-agent.svg)](https://github.com/MohmmedAshraf/nova-fields-agent/blob/master/LICENSE.md)
[![GitHub issues](https://img.shields.io/github/issues/MohmmedAshraf/nova-fields-agent.svg)](https://github.com/MohmmedAshraf/nova-fields-agent/issues)
[![Total Downloads](https://poser.pugx.org/outhebox/nova-fields-agent/downloads)](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.## Screenshots
![Screenshot](screenshot.gif)## 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.