Skip to content

Instantly share code, notes, and snippets.

View AmirFayaz's full-sized avatar
🤓
happy

AmirFayaz AmirFayaz

🤓
happy
View GitHub Profile
@AmirFayaz
AmirFayaz / RequestBeautifier.php
Last active May 15, 2021 09:35
A Middleware for Laravel/Lumen, Which "Trims" Requests, Removes "White Spaces" and Converts "Persian/Arabic Numbers to English Ones"
<?php
namespace App\Http\Middleware;
use Closure;
class RequestBeautifier
{
protected $except = [
'password',