盡管搜索了 Stack OverFlow 并嘗試了類似發(fā)布的問題中建議的所有內(nèi)容,但我仍在努力通過此異常。我已經(jīng)接管了這個(gè)網(wǎng)站,并負(fù)責(zé)讓它在 AWS 上運(yùn)行。目前,我沒有做任何冒險(xiǎn)的事情,只是將大量?jī)?nèi)容復(fù)制到 Linux AWS VM 上,該 VM 運(yùn)行 Apache、PHP、beantalk、Laravel 和 MariaDB。該站點(diǎn)設(shè)置為使用數(shù)據(jù)庫作為Session和Cache Driver. 我試圖將此更改為file和cookie但也有所作為。我已確保key:generate已運(yùn)行并存儲(chǔ)在.env文件中。我已經(jīng)嘗試csrf_token了表單中所有不同版本的輸出,但無濟(jì)于事。很抱歉圍繞同一問題發(fā)布另一個(gè)問題,但希望有其他想法可以幫助我。我的表格中的一個(gè)片段......<form method="post" accept-charset="utf-8" autocomplete="off"> <meta name="csrf-token" content="{{ csrf_token() }}"> <div class="form-group"> .......</form>根據(jù)@Script47 的建議,我修改了我的表單,遺憾的是,這也不起作用:<form method="post" accept-charset="utf-8" autocomplete="off"> {!! csrf_field() !!} <div class="form-group"> .......</form>進(jìn)一步的片段:路線 - web.phpRoute::any('/signup', ['as' => 'jobseeker.signup', 'uses' => 'Jobseeker\JobseekerController@signup']);控制器 if ($this->request->isMethod('POST')) { $rules = [ 'email' => 'email|required|unique:jobseekers,email', 'password' => 'required|min:6|confirmed', ]; $validation_messages = ['email.unique' => trans('messages.auth.email.unique.validation', ['login' => route('jobseeker.login'), 'forgot' => route('jobseeker.forgot')])]; $validation = Validator::make($this->request->all(), $rules, $validation_messages); if ($validation->passes()) { Unsubscriber::remove($this->request->get('email')); $jobseeker = Jobseeker::register($this->request->get('email'), $this->request->get('password')); $jobseeker->sendRegistrationNotification(); $this->auth->login($jobseeker); return redirect()->route('account.details'); }瘋狂的是,這在現(xiàn)場(chǎng)環(huán)境中有效。但是由于我復(fù)制了代碼并在 AWS 上重新設(shè)置它,所以它不起作用。
- 2 回答
- 0 關(guān)注
- 259 瀏覽
添加回答
舉報(bào)
0/150
提交
取消