PHP code example of askerakbar / gpt-trix-editor

1. Go to this page and download the library: Download askerakbar/gpt-trix-editor 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/ */

    

askerakbar / gpt-trix-editor example snippets

 artisan config:clear 

use AskerAkbar\GptTrixEditor\Components\GptTrixEditor;

GptTrixEditor::make('content')->columnSpan('full');

GptTrixEditor::make('content')->disableToolbarButtons([
    'gptTools',
])->columnSpan('full');
bash
php artisan vendor:publish --provider="OpenAI\Laravel\ServiceProvider"
php artisan vendor:publish --tag="gpt-trix-editor-config"
php artisan vendor:publish --tag="gpt-trix-editor-translations"