PHP code example of feadbox / laravel-form-components

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

    

feadbox / laravel-form-components example snippets


return [
    'framework' => 'bootstrap-4',
];

use Livewire\Component;

class ContactForm extends Component
{
    public $name;
    public $email;

    public function submit()
    {
        $this->validate([
            'name' => 'nction render()
    {
        return view('livewire.contact-form');
    }
}

$countries = [
    'be' => 'Belgium',
    'nl' => 'The Netherlands',
];

return [
    'prefix' => 'tailwind',
];

return [
    'framework' => 'bootstrap-4',
];
blade
<x-form wire:submit.prevent="submit">
    @wire('debounce.500ms')
        <x-form-input name="email" />
    @endwire
</form>
blade
<x-form-select name="country_code" :options="$countries" />
bash
php artisan vendor:publish --provider="ProtoneMedia\LaravelFormComponents\Support\ServiceProvider"