Laravel Eloquent gives us accessors. Using accessors, we can have computed fields inside our Model. This means you can have attributes on your model which are calculated on the fly and don’t exist on the table at all.
We will use that column to get video id of Youtube and by doing that, we will be able to show the Youtube video thumbnail.
Frontend: https://github.com/amitavroy/video-reviews
API: https://github.com/amitavdevzone/video-review-api
App link: https://video-reviews.vercel.app
You can find me on:
Twitter: https://twitter.com/amitavroy7
Discord: https://discord.gg/Em4nuvQk
#laravel #laravel testing #accessors #logout #id