rackbeat/laravel-validate-https

Simple validation rule for https urls.
43,691 5
Install
composer require rackbeat/laravel-validate-https
Latest Version:2.1
PHP:>=7.1
License:MIT
Last Updated:Sep 3, 2026
Links: GitHub  ·  Packagist
Maintainer: lasserafn

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

Related Packages

fadion/rule

An expressive validation rule builder for Laravel.

1,145 13
toxic-lemurs/domain-helper

A domain helper to aid in getting sub domain names and protocols.

67 3
jenky/smart-rule

Laravel smart validation rules

109 0
timacdonald/rule-builder

A fluent rule builder for Laravel validation rule generation.

8,222 101
codezero/laravel-unique-translation

Check if a translated value in a JSON column is unique in the database.

1,123,726 188

Version History

Version Released PHP Laravel License
2.1 >=7.1 >=6.0 MIT
2.0 >=7.1 ^6.0|^7.0|^8.0|^9.0 MIT
1.3 >=7.1 ^5.6|^6.0|^7.0|^8.0 MIT
1.2 >=7.1 ^5.6|^6.0|^7.0|^8.0 MIT
1.1 >=7.1 ^5.6|^6.0|^7.0 MIT