PHP code example of namet / laravel-admin-tagsinput
1. Go to this page and download the library: Download namet/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/ */
namet / laravel-admin-tagsinput example snippets
// app/Admin/Controllers/GoodsController
protected function form()
{
$form = new Form(new GoodsCate);
$form->text('name', '属性名');
$form->switch('nullable', '可空')->default(1);
$form->tagsinput('values', '可选值');
return $form;
}
shell
php artisan vendor:publish --tag=laravel-admin-tagsinput