Skip to content

Instantly share code, notes, and snippets.

@robozavri
Created September 6, 2018 15:49
Show Gist options
  • Save robozavri/7ba9fe0402a685e5e86081d1e30bd827 to your computer and use it in GitHub Desktop.
Save robozavri/7ba9fe0402a685e5e86081d1e30bd827 to your computer and use it in GitHub Desktop.
laravel laraadmin snippit parse stringed array
public function gettagsAttribute($value){
// dd($value.'ess');
$tags = explode(',',str_replace(array('[',']','"'), '',$value));
//dd(implode(',', $tags));
return implode(',', $tags);
}
@robozavri
Copy link
Author

პარსავს ლარაადმინის მიერ შენახულ სტროფულ ტიპსი მყოფ მასივს და აბრუნბეს როგორც მასივს

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment