<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aratta-studios / aratta-laravel-boilerplate example snippets
use App\Http\Helpers\InputHelper;
InputHelper::inputChecker(
$request,
[
$request->field_one,
$request->field_two,
// All fields that you need to check
],
function (Request $request) {
// Input is correct do something
}
);
InputHelper::inputChecker(
$request,
null,
function (Request $request) {
// Do something
}
);