最近发表的话题
最近发表的评论
  • 可以动态启用 / 停用修改器吗? at 1个月前

    有更好的方法么?

  • 一定要用 Laravel 5.x Scaffold Generator 这个包吗? at 3个月前

    @Summer

    php artisan make:scaffold Posts 

    生成是 PostsController.php,想要创建 Dashboard/PostsController.php 这种的怎么写?

  • 使用文中的代码报错? at 8个月前

    @liyu001989 没有了,已经在看后面的了 :cry:

  • 删除 token 操作后,postman 提示 Could not get any response? at 8个月前

    @AmberLavigne 我后面弄小程序的时候又提示提示的是 204 ,我也没有修改什么代码

  • Laravel-Debugbar 在 API 中是无法用的么? at 8个月前

    @fybbbb 怎么看啊 :joy:

  • Laravel-Debugbar 在 API 中是无法用的么? at 8个月前

    @liyu001989 谢谢

  • Laravel-Debugbar 在 API 中是无法用的么? at 8个月前

    @liyu001989 就是想看页面的sql语句 有没有n+1

  • Laravel-Debugbar 在 API 中是无法用的么? at 8个月前

    @liyu001989 是在 api/* 路径中无法显示,但是 api/version 可以显示

  • DingoAPI 无法访问 错误 404 错误? at 8个月前
    API_STANDARDS_TREE=prs
    API_SUBTYPE=larabbs
    API_PREFIX=api
    API_VERSION=v1
    API_DEBUG=true

    y要放在 env 文件最后面

  • 登录发生错误? at 9个月前
    use Illuminate\Http\Request;

    忘记 use

  • 为什么本地响应速度都那么慢,5、6 秒才能打开网页?? at 9个月前

    https://learnku.com/articles/9009/solve-the-slow-response-problem-of-windows-system-using-homestead-to-run-laravel-local-project

    @JasonLWF 可能会帮到你,我也不确定,我在前面看到有人问了,我还没有本地操作

  • 新手学习 Laravel,mix 启动错误,求帮助? at 1年前

    @leo
    应该不会是 版本低的原因吧

    是跟 npm ERR! Failed at the @ development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.这个有关么

    vagrant@homestead:~/Codebox/jzapp$ npm run development
    
    > @ development /home/vagrant/Codebox/jzapp
    > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
    
    /home/vagrant/Codebox/jzapp/node_modules/laravel-mix/setup/webpack.config.js:1
    (function (exports, require, module, __filename, __dirname) { let path = require('path');
                                                                  ^^^
    
    SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
        at exports.runInThisContext (vm.js:53:16)
        at Module._compile (module.js:387:25)
        at Object.Module._extensions..js (module.js:422:10)
        at Module.load (module.js:357:32)
        at Function.Module._load (module.js:314:12)
        at Module.require (module.js:367:17)
        at require (internal/module.js:16:19)
        at requireConfig (/home/vagrant/Codebox/jzapp/node_modules/webpack/bin/convert-argv.js:96:18)
        at /home/vagrant/Codebox/jzapp/node_modules/webpack/bin/convert-argv.js:109:17
        at Array.forEach (native)
    
    npm ERR! Linux 3.19.0-25-generic
    npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "development"
    npm ERR! node v5.5.0
    npm ERR! npm  v3.3.12
    npm ERR! code ELIFECYCLE
    npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the @ development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, this is most likely a problem with the  package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls
    npm ERR! There is likely additional logging output above.
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /home/vagrant/Codebox/jzapp/npm-debug.log
  • 新手学习 Laravel,mix 启动错误,求帮助? at 1年前

    @leo
    项目根目录 没有该文件,我新建了
    还是有错误

    0 info it worked if it ends with ok
    1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'run', 'development' ]
    2 info using npm@3.3.12
    3 info using node@v5.5.0
    4 verbose run-script [ 'predevelopment', 'development', 'postdevelopment' ]
    5 info lifecycle @~predevelopment: @
    6 silly lifecycle @~predevelopment: no script for predevelopment, continuing
    7 info lifecycle @~development: @
    8 verbose lifecycle @~development: unsafe-perm in lifecycle true
    9 verbose lifecycle @~development: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/vagrant/Codebox/jzapp/node_modules/.bin:/home/vagrant/.composer/vendor/bin:/home/vagrant/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    10 verbose lifecycle @~development: CWD: /home/vagrant/Codebox/jzapp
    11 silly lifecycle @~development: Args: [ '-c',
    11 silly lifecycle   'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js' ]
    12 silly lifecycle @~development: Returned: code: 1  signal: null
    13 info lifecycle @~development: Failed to exec development script
    14 verbose stack Error: @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
    14 verbose stack Exit status 1
    14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
    14 verbose stack     at emitTwo (events.js:100:13)
    14 verbose stack     at EventEmitter.emit (events.js:185:7)
    14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
    14 verbose stack     at emitTwo (events.js:100:13)
    14 verbose stack     at ChildProcess.emit (events.js:185:7)
    14 verbose stack     at maybeClose (internal/child_process.js:821:16)
    14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
    15 verbose pkgid @
    16 verbose cwd /home/vagrant/Codebox/jzapp
    17 error Linux 3.19.0-25-generic
    18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "development"
    19 error node v5.5.0
    20 error npm  v3.3.12
    21 error code ELIFECYCLE
    22 error @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
    22 error Exit status 1
    23 error Failed at the @ development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
    23 error Make sure you have the latest version of node.js and npm installed.
    23 error If you do, this is most likely a problem with the  package,
    23 error not with npm itself.
    23 error Tell the author that this fails on your system:
    23 error     cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
    23 error You can get their info via:
    23 error     npm owner ls
    23 error There is likely additional logging output above.
    24 verbose exit [ 1, true ]
  • 新手学习 Laravel,mix 启动错误,求帮助? at 1年前

    @leo

    $ cat /home/vagrant/.npmrc
    prefix=/home/vagrant/.npm-global
    registry=https://registry.npmjs.org/

    依旧报错