The following content is the sixth chapter of my new e-book titled “Laravel: my first framework“. This writing is copyright by Maksim Surguy. Unauthorized copy and distribution of this material is prohibited. Chapter 6. Database Operations This chapter covers Configuring Laravel to use a database Introduction to Query Builder and Eloquent ORM Using Query Builder operators for […]
A few days ago I posted a detailed tutorial on how to use Laravel’s polymorphic relationships to simplify management of SEO data in Laravel web applications. You can read that tutorial here: https://maxoffsky.com/code-blog/using-polymorphic-relationships-of-laravel-for-seo-content/ I have also promised that I will release a small admin panel to manage that kind of data and today I will do […]
This tutorial applies to any applications that are built with Laravel framework and that need some sort of SEO and SEO management tool. You can also apply it as an extension to my previous tutorial on building a shop (where we built a review system). SEO (Search Engine Optimization) is an important aspect of any […]
For one of my projects I needed to get an ID of the previous and next record in the DB. Let’s say we are logged in as an admin and we are on this user’s page and we want to see next/previous user’s id. The following Eloquent code makes it easy to do that: // […]