rackbeat/laravel-validate-https

Simple validation rule for https urls.

2.0 2022-11-26 08:35 UTC

This package is auto-updated.

Last update: 2024-04-26 11:37:16 UTC


README

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