diff --git a/app/Nova/Country.php b/app/Nova/Country.php index ff1761ed..922ff007 100644 --- a/app/Nova/Country.php +++ b/app/Nova/Country.php @@ -64,6 +64,9 @@ class Country extends Resource Text::make(__('Name'), 'name') ->rules('required', 'string'), + Text::make(__('English name'), 'english_name') + ->rules('required', 'string'), + MultiSelect::make(__('Languages'), 'language_codes') ->options( config('languages.languages'), diff --git a/database/migrations/2022_12_17_181802_add_english_name_to_countries_table.php b/database/migrations/2022_12_17_181802_add_english_name_to_countries_table.php new file mode 100644 index 00000000..0931de60 --- /dev/null +++ b/database/migrations/2022_12_17_181802_add_english_name_to_countries_table.php @@ -0,0 +1,30 @@ +string('english_name') + ->nullable(); + }); + } + + /** + * Reverse the migrations. + * @return void + */ + public function down() + { + Schema::table('countries', function (Blueprint $table) { + // + }); + } +};