PHP code example of manojo123 / nova-attach-pivot
1. Go to this page and download the library: Download manojo123/nova-attach-pivot 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/ */
manojo123 / nova-attach-pivot example snippets
use NovaAttachPivot\AttachPivot;
public function fields(Request $request)
{
return [
AttachPivot::make('Permissions'),
];
}
->rules('min:5', 'max:10', 'size:10', new CustomRule)