我已成功安装Laravel,但运行后php artisan serve,并要localhost:8000我得到这个错误:
使用未定义的常量MCRYPT_RIJNDAEL_128 - 假设为'MCRYPT_RIJNDAEL_128'
我已经检查phpinfo()过localhost:8888,它说mcrypt已正确安装.然而,我唯一能想到的是,我的道路可能是错的?
在我的.bash_profile身上
PATH=/usr/local/bin:$PATH
Run Code Online (Sandbox Code Playgroud)
每次我尝试运行Laravel命令时,我都必须在终端中输入:
export PATH="~/.composer/vendor/bin:$PATH"
Run Code Online (Sandbox Code Playgroud)
我在Mac上运行.有没有一种简单的方法可以设置我,bash_profile以便我可以在localhost地址之间不断更改并且仍然可以使用所有正确的PHP函数?
如果我使用这个函数,我会收到一个 uglify 错误,但是如果我将它注释掉,gulp 会很好地构建它。我无法使用es6。这个函数的哪一部分是“es6”部分?
function ajaxPromise(arr = null){
var self = this;
$.when.apply($,arr)
.done(function() {
console.log("hello there, inside the done method of the ajax response");
}).fail(function(){
console.log('Something went wrong...');
}
);
}
Run Code Online (Sandbox Code Playgroud)