Download the PHP package kongulov/nova-tab-translatable without Composer

On this page you can find all versions of the php package kongulov/nova-tab-translatable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nova-tab-translatable

Making Laravel Nova Tab Translatable Nova 5 ready

Latest Version on Packagist Licence Total Downloads

This package contains a NovaTabTranslatable class you can use to make any Nova field type translatable with tabs. Use the master branch for Nova 5 and the 1.x branch for Nova 4.

Imagine you have this fields method in a Post Nova resource:

That Post Nova resource will be rendered like this.

screenshot screenshot

Requirements

Installation

Install the package in a Laravel Nova project via Composer:

This is the contents of the file which will be published at config/tab-translatable.php

Usage

You must prepare your model as explained in the readme of laravel-translatable. In short: you must add json columns to your model's table for each field you want to translate. Your model must use the Spatie\Translatable\HasTranslations on your model. Finally, you must also add a $translatable property on your model that holds an array with the translatable attribute names.

Now that your model is configured for translations, you can use NovaTabTranslatable in the related Nova resource. Any fields you want to display in a multilingual way can be passed as an array to NovaTabTranslatable.

If you want to make the field required only in certain languages, then you can use the required_lang rule,

But if you want to make the field required in all languages, then use the laravel rules

Credits

License

This project is open-sourced software licensed under the MIT license.


All versions of nova-tab-translatable with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
spatie/laravel-translatable Version ^5.0|^6.0
laravel/nova Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kongulov/nova-tab-translatable contains the following files

Loading the files please wait ....