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.
#laravel #laravel testing #accessors #logout #id