PHP code example of blendbyte / nova-items-field
1. Go to this page and download the library: Download blendbyte/nova-items-field 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/ */
blendbyte / nova-items-field example snippets
use NovaItemsField\Items;
function fields() {
return [
Items::make('Emails')
]
}
public $casts = [
'emails' => 'array'
];
Items::make('Emails')->rules([
null => '
Items::make('Emails', 'user_email')->rules([
'user_email' => '
function saving($user)
{
foreach($user->emails as $email)
{
//
}
}