Google2Fa ready to upload
This commit is contained in:
parent
e3495be8b8
commit
73e38a006e
127 changed files with 2637 additions and 589 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue