PHP code example of dolalima / laravel-dns-facade

1. Go to this page and download the library: Download dolalima/laravel-dns-facade library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dolalima / laravel-dns-facade example snippets


'providers' => [
// Other service providers...
Dolalima\Laravel\Dns\Providers\DnsServiceProvider::class,
],

use Dolalima\Laravel\Dns\Facades\Dns;
$zones = Dns::zones();

use Dolalima\Laravel\Dns\Facades\Dns;
$records = Dns::records('example.com');

use Dolalima\Laravel\Dns\Facades\Dns;
Dns::create('example.com', 'A', 'www');
bash
php artisan vendor:publish --tag=config