helpers.php
- 创建 bootstrap/helpers.php
- composer.json
"autoload-dev": {
//添加内容
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"Tests\\": "tests/"
},
//添加内容
"files": [
"bootstrap/helpers.php"
]
},
yarn install
1 $ rm -rf node_modules
2 $ yarn config set registry http://registry.cnpmjs.org
3 $ yarn install --no-bin-links
4 接下来打开 pakage.json 修改, 去掉 package.json 中的四处 cross-env
5.执行 $ npm run watch-poll 或者 npm run dev
6.完成
[如果需要时用sass] , 在日益流行前端工程化中,很多同学喜欢使用sass,然而node-sass的下载在国内是个老大难的问题,如果你不翻墙,默认下载极大可能会失败。怎么办呢? 配置下 node-sass 的二进制包镜像地址就行了
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
laravel ide helper
- Install
Require this package with composer using the following command:
composer require barryvdh/laravel-ide-helper
- After updating composer, add the service provider to the providers array in config/app.php
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
- Automatic phpDoc generation for Laravel Facades
You can now re-generate the docs yourself (for future updates)
php artisan ide-helper:generate
网友评论