Google2Fa ready to upload

This commit is contained in:
Kevin Adametz 2021-11-09 18:38:44 +01:00
parent e3495be8b8
commit 73e38a006e
127 changed files with 2637 additions and 589 deletions

View file

@ -71,6 +71,8 @@ use Illuminate\Support\Str;
* @property-read int|null $travel_country_services_count
* @property string|null $destco
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelCountry whereDestco($value)
* @property string|null $visum_text
* @method static \Illuminate\Database\Eloquent\Builder|TravelCountry whereVisumText($value)
*/
class TravelCountry extends Model
{
@ -201,4 +203,13 @@ class TravelCountry extends Model
}
return "";
}
public static function getAsNameIdArray($empty = true, $id = 'crm_id'){
$ret = TravelCountry::get()->pluck('name', $id)->toArray();
if($empty){
$first = [null => "-"];
return $first + $ret;
}
return $ret;
}
}