PHP code example of generalsystemsvehicle / just-read-the-instructions
1. Go to this page and download the library: Download generalsystemsvehicle/just-read-the-instructions 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/ */
generalsystemsvehicle / just-read-the-instructions example snippets
namespace App\Nova\Templates;
use GeneralSystemsVehicle\JustReadTheInstructions\JustReadTheInstructions;
class Pages extends Resource
{
public function fields(Request $request): array
{
return [
JustReadTheInstructions::make("Content")->asHtml()
];
}
}
sh
php artisan vendor:publish --provider="GeneralSystemsVehicle\JustReadTheInstructions\FieldServiceProvider" --tag="public"
php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public
html
{!! JustReadTheInstructions::render( $m->content ) !!}