是否有可能获得一些Linux系统环境变量并仍然使用.env变量?
我们希望使用自动生成的数据库密码,该密码被设置为Linux环境变量,但无法让Laravel找到Linux系统环境变量.
从昨天开始,gulp抛出未处理的错误事件:
"C:\Program Files (x86)\JetBrains\PhpStorm 10.0.1\bin\runnerw.exe" "C:\Program >Files\nodejs\node.exe" C:\..\..\..\..\..\node_modules\gulp\bin\gulp.js --color -->gulpfile "d:\..\..\..\gulpfile.js" default
[11:41:02] Using gulpfile d:\..\..\..\gulpfile.js
[11:41:02] Starting 'default'...
[11:41:02] Starting 'sass'...
Fetching Sass Source Files...
- resources\assets\sass\app.scss
Saving To...
- public\css\app.css
[11:41:02] Finished 'default' after 323 ms
events.js:141
throw er; // Unhandled 'error' event
^
Error: no writecb in Transform class
at afterTransform (d:\..\..\..\node_modules\gulp-autoprefixer\node_modules\readable->stream\lib\_stream_transform.js:95:33)
at Immediate.TransformState.afterTransform (d:\..\..\..\node_modules\gulp->autoprefixer\node_modules\readable-stream\lib\_stream_transform.js:79:12)
at Immediate.immediate._onImmediate (timers.js:435:18)
at processImmediate [as _immediateCallback] (timers.js:383:17)
Run Code Online (Sandbox Code Playgroud)
我已经删除了所有的node_modules并重新安装它们而没有运气.
其他人有这个问题吗?
版本:
我的表单验证错误停止工作,它昨天工作,我一定做错了什么但似乎无法找到它.
当我填写用户名和电子邮件地址时,它会发送电子邮件并回显"电子邮件已发送!".
当我点击注册而不填写任何信息时,它只是重定向到加载视图的用户/注册.
控制器/ user.php的:
public function signup_validation() {
$this -> load -> library('form_validation');
$this -> form_validation -> set_rules('username', 'Username', 'trim|required|alpha|min_length[3]|max_length[25]');
$this -> form_validation -> set_rules('email', 'Email', 'required|trim|valid_email|is_unique[users.email]');
$this -> form_validation -> set_rules('password', 'Password', 'required|trim');
$this -> form_validation -> set_rules('cpassword', 'Retype', 'required|trim|matches[password]');
if ($this -> form_validation -> run()) {
$key = md5(uniqid());
$this -> load -> library('email', array('mailtype' => 'html'));
$this -> load -> model('users');
$this -> email -> from('', "");
$this -> email -> to($this -> input -> post('email')); …Run Code Online (Sandbox Code Playgroud) php ×3
laravel ×2
codeigniter ×1
forms ×1
gulp ×1
html ×1
laravel-5.2 ×1
linux ×1
node.js ×1
validation ×1