Django

How to check if Django is installed on Windows

Django is a popular web framework based on Python. If you have installed it on your windows machine, either you have done it on core Python installation or on a Python virtual environment. As Django is a Python web framework, we need to first check if Python is installed. To check this, open command Prompt using cmd on Windows +…

Read More

Laravel

Perform CRUD Operations using Laravel Eloquent

CRUD Operations in Laravel Eloquent

In this post we will learn about how to perform CRUD Operations using Laravel Eloquent. Eloquent is the laravel way to talk to the database. In upcoming posts, we will learn Eloquent in more depth, But this post will only focus on single table operations. We will cover the post in following steps: Some points on Eloquent Creating MySQL table…

Read More

Laravel

Remove public from Laravel URL

By default, We browse laravel application by appending public on URL. If you are using shared hosting environment, sometimes it is difficult to configure your hosting server to point to the public directory. In such cases, it is necessary to remove public from laravel URL. There are multiple ways to remove public from laravel URL. In this post, we will…

Read More

Laravel

How to Install Laravel on Windows Xampp

In this post, we will learn how to install laravel on windows xampp. Laravel is a popular PHP framework and as it is based on PHP, we need to have PHP configured on our web server. By web server, I mean any computer with Apache, PHP and MySQL installed. XAMPP is a package which consists of Apache, MySQL and PHP.…

Read More

PHP

Dependency Injection in PHP

Dependency injection in PHP

Dependency injection in PHP is a handy technique to keep the code maintainable and re-usable. While coding our PHP classes, we often come to a situation where one class depends on data from another class or a class is dependent on data which is supposed to vary from object to object. Let’s explore a very simple example of How dependency…

Read More

Laravel

How to use Laravel Database Migrations

Laravel database migrations are useful for performing database operations without going deep into SQL syntax.We can create and modify tables using migrations. With the help of laravel database migrations, we can also implement version control for our database schema if we have a team of multiple developers working on same project. We will be understanding this concept by going through…

Read More

PHP

Inheritance in PHP

Inheritance in PHP is useful when we need to create classes with some common, while few contrasting behaviors. In such case, we create a parent class for shared characteristics and child classes for distinct ones. We discussed inheritance in our “Learn OOP in PHP” post, we should extend our code from example given there. Setting Up Classes For better understanding…

Read More

PHP

Learn OOP in PHP

If you want to learn OOP in PHP then it is a good step towards making yourself an expert PHP developer. In this post, I will be focusing on basic concepts of OOP in PHP with a little bit of code. What is OOP ? Object oriented programming is a useful programming technique. In object oriented programming, the code is…

Read More

AngularJS

AngularJS ng-repeat

AngularJS ng-repeat is a useful concept in any of the AngularJS based app. AngularJS ng-repeat directive is used to iterate through a JSON and build HTML accordingly. Filters in AngularJS can be useful if we want to filter the rendered HTML as per our needs. The exciting factor while working with AngularJS HTML rendering is that it is seamless and…

Read More

PHP

PHP mysqli class to connect with MySQL database

PHP mysqli class is one of the multiple ways to connect with MySQL database using PHP. In this post we will learn about PHP mysqli class, it’s useful methods and properties. Following logical steps will show you how to use mysqli class to access MySQL database in PHP: Connecting with MySQL database using PHP Creating a Table in MySQL Database…

Read More