In this post, I will show you a simple method to log each and every Eloquent Query your application executes. We gonna log queries to…
Leave a CommentTag: How to
In this post, we gonna write a simple PHP script to grab the given website URL screenshot. So let’s create an HTML form to collect…
3 CommentsWe gonna use barryvdh/laravel-dompdf Laravel package to generate PDF files from view file. This package is just a wrapper around DOMPDF library. Installtion Use below…
1 CommentYou can easily change created_at and updated_at column names by overriding CREATED_AT and UPDATED_AT constants in your Eloquent model. Example #Task Model Let’s assume you…
Leave a CommentGiving download option to the user is a pretty common requirement in today’s web apps for the variety of reasons. For example, if your application…
Leave a CommentIn this post, I will show how easy it is to use API resources to build REST APIs. In the previous Laravel REST API tutorial,…
3 CommentsBy reading this tutorial you can build RESTful APIs using Node, express, and Sequelize ORM. You gonna use the different HTTP methods during the REST…
1 CommentIn this guide, I will show you simple tips to stop and remove containers, docker images, and values. List all Docker Images docker images -q…
Leave a CommentIn this tutorial, I will show you Nginx installation and configuration steps to serve the Angular application in production. I am gonna use Ubuntu 16.04…
7 CommentsThe mod_rewrite module is enabled by default on CentOS 7. If you find it is not enabled on your server, you can enable it by…
1 CommentIn this tutorial, you will learn what is a prime number and how to check whether the given number is a prime number or not…
Leave a CommentIn the earlier post, I wrote a tutorial on how to connect to the database in a slim framework. In this post, I would like…
3 CommentsHere is the simple JavaScript code snippet to check if the given number is an odd or even number. Function to check Number Is Odd…
Leave a CommentHere is simple PHP code snippet to check if a given number is odd or even. Check Number Is Odd Or Even function checkEven($val){ return…
Leave a CommentYou can use mod_rewrite’s RewriteCond directive to redirect users to different websites depending on what device they are using. .htaccess Rules Following rewrite rules will…
4 Comments