sun-asterisk / laravel-domain-verify
Verify domain ownership for Laravel application
Installs: 972
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 6
Forks: 13
Open Issues: 2
Requires
- php: >=7.1.3
- illuminate/config: ~5.0|~5.7.0|~5.8.0|^6.0|^7.0
- illuminate/database: ~5.0|~5.7.0|~5.8.0|^6.0|^7.0
- illuminate/hashing: ~5.0|~5.7.0|~5.8.0|^6.0|^7.0
- illuminate/support: ~5.0|~5.7.0|~5.8.0|^6.0|^7.0
- nesbot/carbon: ~1.0|~2.0
- spatie/dns: ^1.4
Requires (Dev)
- mockery/mockery: ^1.2
- orchestra/testbench: ^5.3
- phpunit/phpunit: ^7.5|^8.0
- sun-asterisk/coding-standard: ^0.2.1
This package is auto-updated.
Last update: 2024-11-11 10:23:06 UTC
README
Verify domain ownership for the Laravel application. We provide three ways to verify the domain ownership (like Google):
- Via domain's DNS record
- Via HTML tag
- Via HTML file
- Via Adminstrator's email address:
admin@domain.example
,webmaster@domain.example
.
Installation
First, install Domain Verifier via the Composer package manager:
# install this package: composer require sun-asterisk/laravel-domain-verify # create config/domain_verifier.php and: php artisan vendor:publish --provider="SunAsterisk\DomainVerifier\DomainVerifierServiceProvider" # migrate database: php artisan migrate
Usage
Integrate with your model.
<?php 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; //.. }
Requirements
- Laravel
>= 5.6.0