PHP code example of radic / laraval

1. Go to this page and download the library: Download radic/laraval 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/ */

    

radic / laraval example snippets


$rules = [
    'title'         => 'ax:255|alpha_dash',
    'between_dates' => 'after:1/1/2000|before:1/1/2010|date',
    'user_email'    => '   'rules' => $rules
]);

Route::post('validate', function(Request $request){
    $rules = [
        'title'         => '1/2000|before:1/1/2010|date'
    ]
    return Laraval::make('ajax', $rules)->validate($request);
});