PHP code example of calatoiu / cnpcui-rule
1. Go to this page and download the library: Download calatoiu/cnpcui-rule 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/ */
calatoiu / cnpcui-rule example snippets
>= 8.1
use Illuminate\Http\Request;
use calatoiu\CnpcuiRule\ValidCnpcui;
public function store(Request $request)
{
$request->validate([
'cnpcui' => ['
artisan lang:publish
bash
# Path
\main_folder_project
\lang
\app_language(ex.'en')
validation.php
# Add 'cnpcui' key
// validation.php inside 'it' folder
'cnpcui' => 'CNPCUI non valido.'
# Now you're validation message will be translated!