PHP code example of sun-asterisk / laravel-domain-verify
1. Go to this page and download the library: Download sun-asterisk/laravel-domain-verify 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/ */
sun-asterisk / laravel-domain-verify example snippets
namespace App\Models;
// ...
use SunAsterisk\DomainVerifier\Contracts\Models\DomainVerifiable;
use SunAsterisk\DomainVerifier\Traits\DomainVerifiable as DomainVerifiableTrait;
use SunAsterisk\DomainVerifier\Models\DomainVerification;
class Website extends Model implements DomainVerifiable
{
use DomainVerifiableTrait;
//..
}
bash
# install this package:
composer and:
php artisan vendor:publish --provider="SunAsterisk\DomainVerifier\DomainVerifierServiceProvider"
# migrate database:
php artisan migrate