The return is not working in this code -
public function articleImage_1_Refresh(){
$article_id = trim(Input::get('article_id'));
$article_id = Crypt::decrypt($article_id);
$singleData = DB::table('articles')
->where('id',$article_id)
->get();
$image_1 = $singleData[0]->image_1;
//return $image_1;
return '<img id="article_image_1" class="img-responsive custom_margin_auto" src="{{URL::asset('images/articles/'.$image_1)}}" alt="Article Image 1"></img>';
}
Which will be used in -
success:function(result){ // you wrote here response
alert (result);
$('#article_image_1_container').html(result);
}
There is a syntax error in the return line, but can not figure out. Please help.
</div>