outl1ne/nova-grid

A Laravel Nova tool that allows placing fields in a grid using ->size() helpers.

Installs: 998

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 1

Open Issues: 0

Language:Vue

dev-main 2022-08-22 09:02 UTC

This package is auto-updated.

Last update: 2022-09-22 09:13:21 UTC


README

Latest Version on Packagist Total Downloads

This Laravel Nova package allows you to create simple input filters.

Requirements

  • php: >=8.0
  • laravel/nova: ^4.0

Features

  • ->size() helpers that allow placing items next to one another on the detail and form views

Installation

Install the package in to a Laravel app that uses Nova via composer:

composer require outl1ne/nova-grid

Usage

Use ->size() on any Field.

public function fields(NovaRequest $request)
{
    return [
        Text::make('Email')
          ->size('w-1/12')
          ->sizeHalf(), // w-1/2
          ->sizeOneThird(), // w-1/3
          ->sizeTwoThirds(), // w-2/3
    ];
}

Credits

License

Nova Input Filter is open-sourced software licensed under the MIT license.