corcel / acf

Advanced Custom Fields (ACF) plugin for Corcel
126 stars 98 forks source link

Server port changes when accessing Image and File type fields #107

Open vijayrana-99 opened 1 year ago

vijayrana-99 commented 1 year ago

I am testing this plugin and working fine for all field types except Image and File. When I try to access those field, the port of laravel server changes. I am trying to access as below:

$page = Corcel\Model\Page::find(2);
 return $page->acf->image_1;
OR
return $page->acf->custom_file;

The same works for others including the repeater. Anything I am doing wrong? Image for reference: https://i.imgur.com/NZxE6JQ.png