Enabling GZIP compression on Nginx servers is easy and it improves application performance as well as saves bandwidth transfer. By following below steps you can enable GZIP on your virtual private server with simple configuration […]
Polymorphic Eloquent Relationships in Laravel 5
In this post, I would like to show you creating polymorphic relationships in the Laravel5 application. Probable polymorphic relationships are the most advanced eloquent relationships in all available joins in Laravel. […]
How to Setup Virtual Hosts in Ubuntu
In this post, I will walk you through, how to Setup Virtual Hosts in Ubuntu. Virtual Hosts are used to setting up more than one domain or websites using a single IP address. This is very useful if anybody wants to run […]
How to get the logo of any company
In this post I would like to show you getting any company logo with the use of Clearbit’s logo API and you can use those logos in your projects. The Clearbit Logo REST API allows developers to access and integrate […]
Laravel 5 get current authenticated user?
Upon successful login you can get current user details by called Auth::user() method. It will return null if no user logged in or there is no current user. On successful login Auth::user() return value is based on your […]
PHP7 – Context Sensitive Lexer
In PHP7 Reserved Word Restrictions was loosen. There are currently 64 keywords reserved by PHP and some of them would be very useful as a method names to user side to define clear API. Globally reserved words as property, […]
How to Create a Project using XTRF APIs with PHP
In this post, I would like to write about creating projects on XTRF using web services and PHP. XTRF is one of the most popular and fastest growing management systems for translation agencies and corporate translation […]
How to redirect requests to HTTPS in Laravel 5
I know we can achieve same with other methods but I am going do it with the Laravel’s Middleware. So let’s create Middleware called ForceHttpProtocol. How it will work Our ForceHttpProtocol middleware will […]
How to install Laravel 5
In this post, I am going to share Laravel installation steps. We Can install Laravel by using composer and Laravel installer. Laravel Installer is a new feature which is introduced in Laravel 4.1, which can create a project […]
How to create custom post types in WordPress
Often clients ask for different content types in WordPress. Creating custom post types in WordPress is a lot easier job. A custom post type can be added to WordPress via the register_post_type() function. This function […]