PHP code example of globalxtreme / validation
1. Go to this page and download the library: Download globalxtreme/validation 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/ */
globalxtreme / validation example snippets
use App\Http\Controllers\Controller;
use App\Http\Requests\CustomRequest;
use GlobalXtreme\Validation\Validator;
class CustomController extends Controller
{
public function testing(CustomRequest $request)
{
// You can custom validator using gx response
Validator::make($request->all(), ['foo' => '
bash
php artisan vendor:publish --provider="GlobalXtreme\Validation\ValidationServiceProvider"
bash
php artisan make:request CustomRequest