src/Models/Repository/CountryRepository.php
public function options()
    {
        $countries = $this->all();
        $options = Collection::make();
        foreach ($countries as $country) {
            $options->push(['name' => $country->name, 'id' => $country->id]);
        }
        return $options;
    }
public function options()
    {
        $countries = $this->all();
        $options = Collection::make();
        foreach ($countries as $country) {
            $options->push(['name' => $country->name, 'id' => $country->id]);
        }
        return $options;
    }
public function options ( ) { $ countries = $ this -> all ( ) ; $ options = Collection :: make ( ) ; foreach ( $ countries as $ country ) { $ options -> push ( [ 'name' => $ country -> name , 'id' => $ country -> id ] ) ; } return $ options ; }
Get All Country Options for Dropdown Field

@return \Illuminate\Database\Eloquent\Collection
Get All Country Options for Dropdown Field