PHP code example of berthott / laravel-translatable

1. Go to this page and download the library: Download berthott/laravel-translatable library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

berthott / laravel-translatable example snippets


        Schema::create('dummies', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->translatable('user_input');
            $table->timestamps();
        });
    

$ php artisan vendor:publish --provider="berthott\Translatable\TranslatableServiceProvider" --tag="config"