建立一個API,但因爲我從API響應動態地在Vue.js中創建表等,所以我無法使用blade html轉義。 我知道在我的模型,我可以使用賦值函數: public function getNameAttribute($value) {
return strtolower($value); // example
}
但我們可以在很多車型中編輯的很多領域。有沒有辦法我可以自動返回所有值
If a donor wants to donate, he should be linked to reciever in recieve donation table who has not recieve donation or recieved donation less than 2 times