PHP code example of codanux / components
1. Go to this page and download the library: Download codanux/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/ */
codanux / components example snippets
php
php artisan vendor:publish --provider="Codanux\Components\ComponentsServiceProvider"
php
<x-input label="Name" name="name" class="m-2" type="text" />
<x-textarea label="Body" name="body" rows="4" />
<x-radio :options="[1 => 'First', 2 => 'Two']" label="Radio" name="radio"/>
<x-select :options="[1 => 'First', 2 => 'Two']" label="Select" name="select"/>
<x-checkboxes :options="[1 => 'First', 2 => 'Two']" label="Checkboxes" name="checkboxes[]"/>