PHPackages                             y2468101216/laravel-godaddy-domain - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. y2468101216/laravel-godaddy-domain

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

y2468101216/laravel-godaddy-domain
==================================

dynamic map your ip and domain's record

27PHP

Since Mar 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/y2468101216/laravel-godaddy-domain)[ Packagist](https://packagist.org/packages/y2468101216/laravel-godaddy-domain)[ RSS](/packages/y2468101216-laravel-godaddy-domain/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Godaddy Domain
======================

[](#laravel-godaddy-domain)

Status
------

[](#status)

[ ![Build Status](https://camo.githubusercontent.com/2ffef5cac8c013092c37851c9b2862055f8d8de6e85bc1e9273097719fbffbaa/68747470733a2f2f6170692e7472617669732d63692e6f72672f79323436383130313231362f6c61726176656c2d676f64616464792d646f6d61696e2e737667)](https://travis-ci.org/y2468101216/laravel-godaddy-domain.svg)require
-------

[](#require)

laravel 5 and php 7.1

Introduce
---------

[](#introduce)

Feel upset for static ip change to effect your domain record failure, Use this!

Install
-------

[](#install)

Install via composer

```
composer install y2468101216/laravel-godaddy-domain

```

add service provider to `config/app.php` in `providers` block (laravel 5.4 or lower need)

```
Y2468101216\Godaddy\DomainServiceProvider::class

```

publish config

```
php artisan vendor:publish \
 --provider="Y2468101216\Godaddy\DomainServiceProvider"

```

add below line in .env

```
GODADDY_KEY=your-key
GODADDY_SECRET=your-sercet
GODADDY_DOMAIN=your.domain
```

Config
------

[](#config)

The config data order by : options &gt; env &gt; config &gt; build-in value

### Usage options

[](#usage-options)

```
php artisan godaddy-domain {--domain=} {--type=} {--name=} {--value=}

```

The option `domain` is you bought from godaddy

The option `type` is DNS record type, see : [List of DNS record types](https://en.wikipedia.org/wiki/List_of_DNS_record_types)

The option `name` is your subdomain.

The option `value` is DNS record value.

### Usage env

[](#usage-env)

add below line in .env

```
GODADDY_RECORD_TYPE=your_dns_type
GODADDY_RECORD_NAME=your_dns_name
GODADDY_RECORD_VALUE=your_dns_value
```

If your use config cache, run

```
php artisan config:cache

```

### Usage config

[](#usage-config)

you can set your custom default value in `config/godaddy.php`, like below

```
