Dymantic / laravel-instagram-feed

147 stars 51 forks source link

Feed Returning A Profile Object Only - Laravel 8 & Vue #48

Closed kinger251285 closed 2 years ago

kinger251285 commented 2 years ago

Hi

I now have the account all connected and working after upgrading to Laravel 8.

I am fully connected and can see the profile pulling in correctly and the feed items.

My Controller:

$feed = \Dymantic\InstagramFeed\InstagramFeed::for('insta_profile');

return Jetstream::inertia()->render($request, 'PortfolioSummary', [ 'instagram_feed' => $feed ]);

if a dd($feed) it returns the profile and items.

However in the Vue file i can only access the $feed as an Object and only the Profile as an Object.

kinger251285 commented 2 years ago

Sorted my own issue by adding the ->collect(); method to the end