PHP code example of septio / laravel-nova-meaning-cloud

1. Go to this page and download the library: Download septio/laravel-nova-meaning-cloud 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/ */

    

septio / laravel-nova-meaning-cloud example snippets


use Septio\LaravelMeaningcloud\LaravelMeaningcloud;

public function fields(Request $request)
    {
        return [
            //... Rest of fields
            LaravelMeaningcloud::make("resume")->from("Body")->sentences(5)->hideFromIndex(),
        ];
    }

public function fields(Request $request){
    return [
        Text::make("title"),
        Trix::make("body"), // We'll use the builtin Trix editor for the body
        LaravelMeaningCloud::make("resume")->from("Body"),
        BelongsTo::make("author")
    ];
}

public function fields(Request $request){
    return [
        Text::make("title"),
        Trix::make("Text to display", "body"), // Now "Body" doesn't work anymore
        LaravelMeaningCloud::make("resume")->from("Text to display"), // We'll have to use "Text to display"
        BelongsTo::make("author")
    ];
}