PHP code example of nathanheffley / nova-algolia
1. Go to this page and download the library: Download nathanheffley/nova-algolia 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/ */
nathanheffley / nova-algolia example snippets
// in app/Nova/ResourceName.php
public function fields(Request $request)
{
return [
// ...
\NathanHeffley\NovaAlgolia\AlgoliaResourceTool::make()->className(\App\ModelName::class),
];
}
// in app/Nova/ResourceName.php
public function actions(Request $request)
{
return [
// ...
new \NathanHeffley\NovaAlgolia\Actions\ImportAlgolia,
new \NathanHeffley\NovaAlgolia\Actions\RemoveAlgolia,
];
}