PHP code example of fotobank / laravel-admin-tagsinput

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

    

fotobank / laravel-admin-tagsinput example snippets


// app/Admin/Controllers/GoodsController

protected function form()
{
    $form = new Form(new GoodsCate);

    $form->text('name', 'Название');
    $form->switch('nullable', 'Switch')->default(1);
    $form->tagsinput('values', 'Дополнительное значение');
    return $form;
}
shell
php artisan vendor:publish --tag=laravel-admin-tagsinput