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

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-include of inline SVG does not display gradient except in Chrome