rackbeat/laravel-validate-https

Simple validation rule for https urls.
43,333 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,178 101
codezero/laravel-unique-translation

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

1,101,358 188