天天看點

homestead yarn composer idehelper

helpers.php

  1. 建立 bootstrap/helpers.php
  2. 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

  1. Install

    Require this package with composer using the following command:

composer require barryvdh/laravel-ide-helper
           
  1. After updating composer, add the service provider to the providers array in config/app.php
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
           
  1. Automatic phpDoc generation for Laravel Facades

    You can now re-generate the docs yourself (for future updates)

php artisan ide-helper:generate