PHP code example of swapnilsarwe / nova-icndb-card

1. Go to this page and download the library: Download swapnilsarwe/nova-icndb-card 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/ */

    

swapnilsarwe / nova-icndb-card example snippets


// in app/Providers/NovaServiceProvider.php

public function cards()
{
    return [
        // ...
        new \Swapnilsarwe\NovaIcndbCard\NovaIcndbCard,
    ];
}

...
'name_to_use' => [
    'first_name' => 'Chuck', // type in your own first name
    'last_name' => 'Norris', // type in your own last name
],
...

...
'excluded_categories' => [ 
    // jokes belonging to following categories will not be shown
    'explicit',
],
...

php artisan vendor:publish --provider="Swapnilsarwe\NovaIcndbCard\CardServiceProvider"

php artisan vendor:publish --provider="Swapnilsarwe\NovaIcndbCard\CardServiceProvider" --force