Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel - How to concatenate URL and retrieve images from database in json format

public function getImageUrlAttribute($value)
    {
        return 'http://localhost:8000/'.$this->image;
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #How #concatenate #URL #retrieve #images #database #json #format
ADD COMMENT
Topic
Name
1+1 =