online software programming courses

How to get last N entries from DB | Laravel

To get the first 10 entries from laravel eloquent model you can like this