PHP code example of youbar / nova-difference
1. Go to this page and download the library: Download youbar/nova-difference 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/ */
youbar / nova-difference example snippets
use Youbar\Difference\Difference;
class ExampleNovaResource extends Resource {
public function fields(Request $request)
{
return [
Difference::make('Difference', 'old_values', 'new_values'),
];
}
}