Skip to content

Instantly share code, notes, and snippets.

@Otienoh
Last active December 26, 2018 20:43
Show Gist options
  • Save Otienoh/c9391fe80da02db45c8c2b14bed821c1 to your computer and use it in GitHub Desktop.
Save Otienoh/c9391fe80da02db45c8c2b14bed821c1 to your computer and use it in GitHub Desktop.

Laravel Nova Undocumented

Great Links

Require the Nova package in your composer.json and run the nova:install and migrate artisan commands:

php artisan nova:install
php artisan migrate

Login

Default path: http://localhost/nova

Fields

Country Field

The Country field generates a Select field containing a list of the world's countries. By default, the Country field dropdown will list all the country world. If you would like to limit the countries showed in the dropdown, you may use the options method:

 use Laravel\Nova\Fields\Country;

 Country::make('Country', 'country_code')
          ->options([ 
                'KE' => __('Kenya'),
                'UG' => __('Uganda'),
                'TZ' => __('Tanzania'),
          ])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment