PHP code example of webman-tech / laravel-validation
1. Go to this page and download the library: Download webman-tech/laravel-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/ */
webman-tech / laravel-validation example snippets
namespace app\controller;
use support\Request;
class FooController
{
public function bar(Request $request)
{
$validator = validator($request->post(), [
'title' => '
namespace app\controller;
use support\Request;
use WebmanTech\LaravelHttp\Facades\LaravelRequest;
class FooController
{
public function bar()
{
$validator = validator(LaravelRequest::all(), [
'file' => '
namespace app\controller;
use support\Request;
use WebmanTech\LaravelHttp\Facades\LaravelRequest;
class FooController
{
public function bar()
{
LaravelRequest::validate([
'file' => '