PHP code example of wyattcast44 / laravel-safe-username

1. Go to this page and download the library: Download wyattcast44/laravel-safe-username library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wyattcast44 / laravel-safe-username example snippets


use Wyattcast44\SafeUsername\Rules\AllowedUsername;

Validator::make($request, [
    'username' => ['
bash
php artisan vendor:publish --provider="Wyattcast44\SafeUsername\SafeUsernameServiceProvider"