Check for the application environment in Laravel views
August 5, 2020 — Often you’d come across a scenario where you’d like to check the application environment and based on that you’d like to render things.
August 5, 2020 — Often you’d come across a scenario where you’d like to check the application environment and based on that you’d like to render things.
August 4, 2020 — The Fetch API as we all know is the modern replacement to the good old XHRHttpRequest AKA Ajax as it’s much simpler and uses promises. It’s great to make API calls without adding any third-party library overhead.
July 31, 2020 — Laravel’s Blade template engine is great and ever-evolving. There are some features in Blade, which if used appropriately, can make your codebase look more organized and recognizable.
July 29, 2020 — Although the Arrow functions in JavaScript are a great way to make your code concise and more readable than the regular functions, there are some important things that you should consider before using arrow functions which can even break your application if you’re not aware of this.
July 28, 2020 — The usual way of adding event-listener on certain elements is using the addEventListener method on the element. For instance, if you want to register a click event on an element with id checkoutBtn, you can do it like so.
July 27, 2020 — I was working on implementing the Konami code easter egg on this blog and there was this need where I need to stop the scrolling only when the previous two presses by the user are ArrowUp.
July 24, 2020 — So, the other day, I was going through my Twitter feed and I saw this tweet. This user had explored an easter egg on the newly designed Stripe.com’s website.
July 23, 2020 — If you’re familiar with JavaScript, you might have worked with or at least heard about Promises at some point of time.
July 20, 2020 — Sometimes, you want to load some stuff based on the fact that the certain service provider is loaded in the providers array of config/app.php or not.
July 19, 2020 — Git is a lot easier when you make the best out of it. For instance, setting a simple Git config can make your life a lot simpler and smoother.