我使用 Laravel 项目作为 Moodle 的本地插件,使用composer/installer包。项目布局如下:
// Moodle Application
- composer.json
- local/
- laravel-plugin/ <- here is the Laravel local plugin
- composer.json <- composer.json of Laravel plugin
Run Code Online (Sandbox Code Playgroud)
Moodle 应用程序的 composer.json
{
"name": "moodle/moodle",
"license": "GPL-3.0",
"description": "Moodle - the world's open source learning platform",
"type": "project",
"homepage": "https://moodle.org",
"require": {
"composer/installers": "~1.0",
"Pursuittech/sam": "dev-master" <- here is the Laravel local plugin
},
"require-dev": {
"phpunit/phpunit": "5.5.*",
"phpunit/dbUnit": "1.4.*",
"moodlehq/behat-extension": "3.33.1",
"mikey179/vfsStream": "^1.6"
},
"repositories": [
{
"type": …Run Code Online (Sandbox Code Playgroud) 我正在运行 valet 2.0.5,但它使用了错误的 PHP 版本。当开始代客泊车时我得到
$ valet start
Restarting php71...
Restarting nginx...
Valet services have been started.
Run Code Online (Sandbox Code Playgroud)
但phpinfo()给出PHP Version 5.6.30和Loaded Configuration File: /usr/local/etc/php/5.6/php.ini。
我已经使用brew安装并重新链接了php,
$ which php
/usr/local/opt/php71/bin/php
$ php -v
PHP 7.1.7
Run Code Online (Sandbox Code Playgroud)
我尝试卸载并重新安装 valet,但没有成功。
标题已经说明了一切,我在网上找不到任何其他信息。我想知道我是否有可能得到
secondary_links = StreamField([
('Page', SerialisedPageChooserBlock())])
Run Code Online (Sandbox Code Playgroud)
正好接受两个块。