PHP code example of romanzipp / laravel-validator-pizza
1. Go to this page and download the library: Download romanzipp/laravel-validator-pizza 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/ */
romanzipp / laravel-validator-pizza example snippets
return [
// Database storage enabled
'store_checks' => true,
// Database table name
'checks_table' => 'validator_pizza',
// Cache enabled (recommended)
'cache_checks' => true,
// Duration in minutes to keep the query in cache
'cache_duration' => 30,
// Determine which decision should be given if the rate limit is exceeded [allow / deny]
'decision_rate_limit' => 'allow',
// Determine which decision should be given if the domain has no MX DNS record [allow / deny]
'decision_no_mx' => 'allow',
// Makes use of the API key
'key' => env('VALIDATOR_PIZZA_KEY'),
];
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
public function handleEmail(Request $request)
{
$request->validate([
'email' => '