Lately I’ve been messing around with Laravel and while building a component for my application I’ve noticed that Laravel doesn’t generate a url with query strings. The “pretty urls” work just fine
example.com/search/term, but what I really needed in my case was url with a query string like
For the purposes of this blog post, I choose a basic example of indexing all movies stored in our database and filtering the data based on movie’s name.
Continue reading “Generate route with query string in Laravel”
The WordPress API includes several endpoints you can use to read information from the database and use the data for different purposes. In this blog post we will get use of the
/wp-json/wp/v2/posts endpoint, which is something like running a
WP_Query. It works using the four most common HTTP methods – GET, POST, PUT and DELETE, for which you will need to be authorized to work with.
* Note that you will need to install the WP REST API plugin.
Because we mostly don’t need and use all the information, there is a way to manipulate the JSON response. WP API provides us with a filter called
rest_prepare_posts which we can use for adding and removing fields (data). So, lets jump into some examples.
Continue reading “WP REST API: Modifying the JSON Response”
If you want to improve at anything, first you need to have the will to do it and to know exactly what you are doing, and after that, open yourself up for a feedback which will help you achieve your goal and become better in what you do. If we never listen to a feedback that we are given there are small chances that we will move from the current point and improve ourselves. But, there is a difference between good feedback and poor feedback which may look more like a hate. Everyone has its own opinion and we should choose carefully (actually, it’s not that hard) who should we listen to. Continue reading “Be descriptive, be specific, be usable – Give Feedback”
I’ve never considered myself as a morning person. Never! I never liked that alarm sound that was making noise in the morning and never thought that I could become a person that loves morning. I was always struggling to get out of bed. And the things is that I was not sleeping, I was just “half asleep” person hitting the snooze button and trying to prolong until last minute.
Two months ago I decided to change that. Continue reading “How I Became a Morning Person”