day4 / belongs-to-browser
A Laravel Nova field.
Installs: 1 126
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
README
Display items with a title and an image from a relationship to attach to the resource.
Setup
composer require day4/belongs-to-browser
Usage
BelongsToBrowser
config(string $resource, string $title = 'title', string $image = 'image')
order(string $orderby = 'updated_at', string $direction = 'desc')
filter(string $field, string $value)
group(string $groupBy, array $groupOptions)
Example Field for images resource
use Day4\BelongsToBrowser\BelongsToBrowser;
...
BelongsToBrowser::make(__('Featured Image'), 'image_id')
->config('images','alt','src')
->group('ratio', \App\Statics\ImageRatios::Options())
->filter('ratio', '16:9'),
Roadmap
- Browser
- Creator
- Filter and Preset value
- Group By
- Multiple Select