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

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"? - development

CORS issue between web/android/ios

Angular.js ng-click with mouse middle button