Sometimes need to modify a Field value while retrieving records using Laravel Eloquent e.g. get date from datetime field, make field value in upper case, etc. To do that you can either use selectRaw() or Accessors. Similarly, If you want to update the value while inserting or updating using Eloquent then you can either modify ... Read more
The post What is Accessors And Mutators in Laravel? appeared first on Makitweb.