Skip to content

ninesixtymv/NovaThaanaField

Repository files navigation

Thaana fields for Nova apps

This package contains a Nova field to add Thaana Field to resources. Under the hood it uses the jawish/jtk.

Installation

You can install this package in to a Laravel app that uses Nova via composer:

composer require ninesixtymv/nova-thaana-field

Usage

Text

To make an Text field support Thaana, you can use the Ninesixtymv\NovaThaanaField\ThaanaTextField field in your Nova resource:

namespace App\Nova;

use Ninesixtymv\NovaThaanaField\ThaanaTextField;

class Post extends Resource
{
  // ...

  public function fields(Request $request)
  {
    return [
      // ...

      ThaanaTextField::make('Title'),

      // ...
    ];
  }
}

Textarea

To make an Textarea field support Thaana, you can use the Ninesixtymv\NovaThaanaField\ThaanaTextareaField field in your Nova resource:

namespace App\Nova;

use Ninesixtymv\NovaThaanaField\ThaanaTextField;

class Post extends Resource
{
  // ...

  public function fields(Request $request)
  {
    return [
      // ...

      ThaanaTextareaField::make('Description'),

      // ...
    ];
  }
}

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please create an issue.

Credits

The javascript that enable Thaana in the fields is based on the JTK package created by Jawish Hameed

License

The MIT License (MIT). Please see License File for more information.