PHP code example of fuelviews / laravel-forms

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

    

fuelviews / laravel-forms example snippets


<form method="POST" action="{{ route('forms.validate') }}">
    <input type="text" name="isSpam" style="display:none" />
    
    /* Form fields here */
    
    <x-forms::meta />
    <input type="hidden" name="form_key" value="contact_us" />
    <input type="text" name="gotcha" class="hidden" />
    
    <x-forms::buttons.fake-button :buttonText="'Submit'" />
    <x-forms::buttons.submit-button :buttonText="'Submit'" />
</form>

<button onclick="Livewire.dispatch('openModal')">Show Modal</button>
@livewire('forms-modal')
bash
php artisan forms:install
bash
php artisan vendor:publish --tag="forms-config"
bash
php artisan vendor:publish --tag="forms-views"
layouts.app.blade.php
config/forms.php
javascript
content: [
    './vendor/fuelviews/laravel-forms/resources/**/*.php'
]