PHP code example of marshmallow / nova-fontawesome

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

    

marshmallow / nova-fontawesome example snippets


return [

  'js' => [
    '/vendor/fontawesome/all.js',
    // add more if you need to...
  ],

];

use Marshmallow\NovaFontAwesome\NovaFontAwesome;
NovaFontAwesome::make('Icon');

NovaFontAwesome::make('Icon')
  ->addButtonText('Click Me!')

NovaFontAwesome::make('Icon')->defaultIcon('far', 'check-circle')

NovaFontAwesome::make('Icon')
  ->addButtonText('Click Me!')
  ->defaultIcon('far', 'check-circle')
  ->persistDefaultIcon();

NovaFontAwesome::make('Icon')->only([
  'facebook',
  'twitch',
  'twitter',
]);

return [

  // ...
  'pro' => true,
];
bash
php artisan vendor:publish --tag=nova-fontawesome-config