PHP code example of roro / roroform

1. Go to this page and download the library: Download roro/roroform 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/ */

    

roro / roroform example snippets


return [
    // 'tailwind' (default) | 'bootstrap' | 'raw'
    'theme' => 'tailwind',

    // Add the HTML `

$request->input('contacts');
// [
//   ['name' => 'Alice', 'email' => '[email protected]', 'type' => 'mobile'],
//   ['name' => 'Bob',   'email' => '[email protected]',   'type' => 'home'],
// ]

// Your controller just validates as usual.
$request->validate([
    'email'            => '

'theme' => 'tailwind', // 'bootstrap' | 'raw'
bash
php artisan vendor:publish --tag=roro-config
blade
<x-roro-repeatable name="tags" index-token="#" :rows="['red', 'green']">
    <x-roro-text name="tags[#]" placeholder="Tag"/>
</x-roro-repeatable>
{{-- posts: tags => ['red', 'green'] --}}
bash
php artisan vendor:publish --tag=roro-styles   # -> public/vendor/roroform/roroform.css
bash
php artisan vendor:publish --tag=roro-views
# -> resources/views/vendor/roroform/...
bash
composer vendor:publish --tag=roro-config   # config/roroform.php
php artisan vendor:publish --tag=roro-views    # (optional) own the Blade markup