Created
September 6, 2018 15:49
-
-
Save robozavri/7ba9fe0402a685e5e86081d1e30bd827 to your computer and use it in GitHub Desktop.
laravel laraadmin snippit parse stringed array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function gettagsAttribute($value){ | |
// dd($value.'ess'); | |
$tags = explode(',',str_replace(array('[',']','"'), '',$value)); | |
//dd(implode(',', $tags)); | |
return implode(',', $tags); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
პარსავს ლარაადმინის მიერ შენახულ სტროფულ ტიპსი მყოფ მასივს და აბრუნბეს როგორც მასივს