![]() ![]() ![]() You can do that with the following php artisan command: php artisan make :controller RssFeedController ![]() Let's start by creating a new controller called RssFeedController. Learn more about the DevDojo sponsorship program and see your logo here to get your brand in front of thousands of developers. View Website Learn how to code your own blockchain and create your own crypto-currency with the CoinCamp interactive and fun online training platform. And I will expose the latest posts from my Laravel Voyager blog to my RSS feed! For this example, I will use my Post model that comes by default with the Laravel Voyager. You would also need a model which you would work with. If you are new to DigitalOcean, you can use my referral link to get a free $100 credit so that you can spin up your own servers for free: If you don't have one, you can follow the steps here on how to install Laravel on DigitalOcean with 1-Click. To get started, all that you need is a Laravel application. However, in this tutorial, I will show you how to do that easily without adding a whole package! Prerequisites You can add an RSS feed to Laravel Application by using the laravel-feed. Having an RSS feed would allow your users to track the latest posts on your website easily.īut having an RSS feed will also allow you to sign up for services like or and post your latest articles there automatically. RSS stands for Really Simple Syndication and is a feed that returns information in XML format. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |