Skip to content

Rackbeat/laravel-validate-https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Validation Rule to ensure a url is secured (https)

Should be combined with url rule. Alternatively just run starts_with('https://')

Build Status Coverage Total Downloads Latest Stable Version License

Installation

You just require using composer and you're good to go!

composer require rackbeat/laravel-validate-https

The Service Provider is automatically registered.

Usage

Class

  • Rackbeat\Rules\HttpsRule
'url' => [
    'url',
    new Rackbeat\Rules\HttpsRule,
],

Helper

  • https
'url'        => [ 'url', 'https' ],

Requirements

  • PHP >= 7.1

About

Validation Rule to ensure a url is secured (https)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages