PHP code example of michalkortas / laravelforms

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

    

michalkortas / laravelforms example snippets


michalkortas\LaravelForms\LaravelFormsServiceProvider::class

<x-form-text label="This is simple text label" name="text-input" value="" />

$options = [1=>"one", 2=>"two", 3=>"three"];
<x-form-select label="This is simple text label" name="select-input" value="2" :options="$options" />

<x-form-text :model="$model" name="translation" label="String translation" />

<x-form-text :model="$model" model-key="otherkey" name="translation" label="String translation" />