🪚

Mutator

While saving the data if you want to modify the data and then save in the database then you will have to use mutators in the laravel
  1. make a controller
  1. make a model according to the table
  1. iimport model inside the controller
  1. Define a view for controller inside web.php
  1. modify model as given below
  1. Here we are adding Mr. to the name attribute before saving to the database
notion image

Problem

notion image
if this problem comes then simply disable the timestamp inside model
notion image