Wednesday, March 28, 2018

Calculated column in Laravel to transform name in slug - development

Calculated column in Laravel to transform name in slug

I have a Location Model and Migration. Here I have name. Now I want to add an extra column (calculated), that will be name column with some replacement of special characters, and spaces to -. I will write that replace function by myself. I can’t find a way of introducing calculated columns.
Thanks.



from Laravel Questions and Answers https://laravelquestions.com/php/calculated-column-in-laravel-to-transform-name-in-slug/
via Lzo Media

No comments:

Post a Comment