PHP code example of esperlos / laravel_esperlos_boilerplate
1. Go to this page and download the library: Download esperlos/laravel_esperlos_boilerplate 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/ */
esperlos / laravel_esperlos_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
}
);