PHP code example of laravelrotebal / nova-attach-many

1. Go to this page and download the library: Download laravelrotebal/nova-attach-many 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/ */

    

laravelrotebal / nova-attach-many example snippets


use NovaAttachMany\AttachMany;

public function fields(Request $request)
{
    return [
        AttachMany::make('Permissions'),
    ];
}

->rules('min:5', 'max:10', 'size:10', new CustomRule)