Looking to hire Laravel developers? Try LaraJobs

laravel-validate-https maintained by rackbeat

Description
Simple validation rule for https urls.
Authors
Last update
2022/11/26 09:35 (dev-master)
License
Links
Downloads
40 844

Comments
comments powered by Disqus

Validation Rule to ensure a url is secured (https)

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

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