有誰知道為什么數據庫通知網址在 // 上添加 \ ?風景我有一個通知表,我想將 url 作為數據數組存儲在通知類中,但是 url 添加了 \ ,下面是我的代碼,當我使用雄辯的 url 時,它沒有得到條帶意味著存儲我在數據庫中傳遞的任何內容。public function toDatabase(){ return [ // 'msg' => "Your Comment On ". $this->post->getAttributes()['title'] ." Was Approved Please click <a href='".route('$this->post->slug')."'>here</a> to view it", 'msg' => "https://google.com" , ];}當我調用通知類時,我的數據庫中實際存儲了什么{"msg":"https:\/\/google.com"}看起來他們已經添加了 mysql 預防,但是查詢生成器是無注入的,如文檔中所述,如果我錯了,請糾正我,謝謝
- 2 回答
- 0 關注
- 129 瀏覽
添加回答
舉報
0/150
提交
取消