xaboy / laravel-form-builder

laravel专用表单生成器,快速生成现代化的form表单。包含复选框、单选框、输入框、下拉选择框等元素以及,省市区三级联动,时间选择,日期选择,颜色选择,树型,文件/图片上传等功能。
MIT License
61 stars 7 forks source link

Laravel 5.8 @include('vendor.form-builder.assets') 显示没有这个文件 #5

Open QiuYiBin opened 5 years ago

QiuYiBin commented 5 years ago

image

xaboy commented 5 years ago

有没有执行 php artisan vendor:publish --provider='LaravelFormBuilder\FormBuilderProvider'

QiuYiBin commented 5 years ago

执行过,安装你文档的步骤来的

xaboy commented 5 years ago

可能是兼容性的问题, 这句话好像没有执行成功. php artisan vendor:publish -provider='LaravelFormBuilder\FormBuilderProvider'

QiuYiBin commented 5 years ago

现在暂时没有办法解决吗

xaboy commented 5 years ago

我检查一下

QiuYiBin commented 5 years ago

好的,谢谢

xaboy commented 5 years ago

我这边测试没有问题呀,是不是权限的问题. 文件没有复制成功

laravel58 php artisan vendor:publish --provider='LaravelFormBuilder\FormBuilderProvider'
Copied Directory [/vendor/xaboy/laravel-form-builder/src/views] To [/resources/views/vendor/form-builder]
Copied Directory [/vendor/xaboy/laravel-form-builder/src/assets/form-create] To [/public/vendor/form-create]
Publishing complete.
QiuYiBin commented 5 years ago

我是windows 10系统的,应该不存在权限问题,可以说下你的操作步骤吗?

xaboy commented 5 years ago

然后直接在welcome.blade.php引入,没有问题

            <div class="content">
                <div class="title m-b-md">
                    Laravel
                </div>
                @include('vendor.form-builder.assets')
                <div class="links">
                    <a href="https://laravel.com/docs">Docs</a>
                    <a href="https://laracasts.com">Laracasts</a>
                    <a href="https://laravel-news.com">News</a>
                    <a href="https://blog.laravel.com">Blog</a>
                    <a href="https://nova.laravel.com">Nova</a>
                    <a href="https://forge.laravel.com">Forge</a>
                    <a href="https://github.com/laravel/laravel">GitHub</a>
                </div>
            </div>
QiuYiBin commented 5 years ago

从头开始的步骤方便发下吗

xaboy commented 5 years ago

创建项目

 composer create-project 'laravel/laravel:5.8.*' ./laravel58

引入 laravel-form-builder

composer require xaboy/laravel-form-builder

发布配置文件与资源

php artisan vendor:publish --provider='LaravelFormBuilder\FormBuilderProvider'
QiuYiBin commented 5 years ago

我这边还是不行

QiuYiBin commented 5 years ago

image

xaboy commented 5 years ago

这个好像没有执行成功

php artisan vendor:publish --provider='LaravelFormBuilder\FormBuilderProvider'

成功会提示

Copied Directory [/vendor/xaboy/laravel-form-builder/src/views] To [/resources/views/vendor/form-builder]
Copied Directory [/vendor/xaboy/laravel-form-builder/src/assets/form-create] To [/public/vendor/form-create]
Publishing complete.

你可以在这个文件里面调试一下,看看是不是路径不对

/vendor/xaboy/laravel-form-builder/src/FormBuilderProvider.php
QiuYiBin commented 5 years ago

image 已经搞定,后面不能加单引号。。。

xaboy commented 5 years ago

好吧,我修改一下说明

QiuYiBin commented 5 years ago

谢谢你的解答