drevls8138 2015-08-17 09:10
浏览 13

创建Laravel包而不在终端上运行工匠

I have a laravel project (almost completed). I developed most of my dependencies on ping pong modules and admin pulgins - https://sky.pingpong-labs.com. My challenge is having to plug other modules "on the fly" - at run-time. I don't like the idea of running artisan. Is there any way I can create a version on my own ping pong modules without running artisan? Or better still, is there anyway of running artisan with my php codes and not on terminal?

Ok, I found something, http://laravel.com/docs/5.1/artisan#calling-commands-via-code, so I did this:

Artisan::call('module:make',['name'=>'testModule']);

but I got error 'Invalid argument supplied for foreach()'.

Any one with an idea?

Thanks,

Peter

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 msix packaging tool打包问题
    • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线