How to update a field in a database via email?
Solution 1:
Embedding forms in emails is not allowed/recommended. It is a security risk. Email clients will simply warn the recipients of potential danger and will disable the form.
You need to add a link to your application in the email content.
<a href="http://yourapp.com/add-consent/{$token}">click me</a>
When a user will click on the URL below route will hit.
Route::get('/add-consent/{token}', 'WelcomeController@welcome')->name('welcome');
In the action identify user based on token and perform the action.
public function welcome($token) {
// Identify user based on token and perform the action...
\DB::table('config')->where('hash', $token)->update(['agree' => 1]);
}