PHP code example of vesperabr / laravel-form-components
1. Go to this page and download the library: Download vesperabr/laravel-form-components 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/ */
vesperabr / laravel-form-components example snippets
$paises = [
'br' => 'Brasil',
'us' => 'Estados Unidos',
'jp' => 'Japão',
];
blade
<x-form method="POST" multipart>
...
</x-form>
blade
<x-checkbox name="ativo" value="sim" default="nao" label="Usuário ativo?" />
bash
php artisan vendor:publish --provider="Vespera\LaravelFormComponents\ServiceProvider"