Profile cover photo
Profile photo
Vijaya Sankar N
103 followers -
Programmer, Designer & Translator
Programmer, Designer & Translator

103 followers
About
Vijaya Sankar's posts

Post has attachment
When more than one modal is opened you might have noticed that after the latter modal loses its focus, the former modal loses its scrolling option, rather page’s body scrolls (if exists, otherwise no scrollbar!). There is a quick fix for this:

Post has attachment
Laravel query returns values as objects. When you need to convert it into array values, you can use any one of the following: Method 1: Using PHP’s array_map function $db_results = array_map(function($result){ return (array) $result; }, $db_results);

Post has attachment
array_unique removes duplicates from only flattened one dimensional array. But still it can be used in a multi-dimensional array with a small work-around.

Post has attachment
After developing the application locally, when the application is moved to production, people find that web page fails to display the content. This may be due to proper file permissions. Some simply gives complete read, write and execute permission for…

Post has attachment
Sometimes, we may extend/include more than one template inside a layout. When we need to define a section of content in a single yield, it perfectly does its job. But when there is a situation that needs to include multiple sections inside a single yield,…

Post has attachment
When tables are migrated in Laravel with foreign key checks, MySQL doesn’t allow us to create a foreign key reference to the parent table from the child table without parent table being created. Sometimes, when we create migrations, we would have ended up…

Post has attachment
When you are in a situation to initiate git to a directory which is already developed and you need to pull changes from the remote ignoring local changes, you will not be allowed to use: git pull origin master

Post has attachment
One of the popular PHP framework – Laravel can be installed in Ubuntu using composer. To setup an EC2 instance with Ubuntu 16.04, read this post. To set up LAMP stack, read this post.

Post has attachment

Post has attachment
Set up your Ubuntu EC2 instance with LAMP stack – Linux, Apache, MySQL, PHP. I have used Ubuntu 16.04 machine. To know how to set up an instance in AWS, check this post.
Wait while more posts are being loaded