Working With MySQL Joins

working with mysql unions

In PHP applications, Retrieving data from relational tables generally require the use of joins. MySQL joins enable developers to select data from multiple tables with a single SQL statement. Let’s explore MYSQL joins.

continue reading »

How To Install Dependencies With PHP Composer

Install Dependencies With PHP Composer

Composer is a dependency management tool for PHP developers. It allows you to define all libraries that your application depends on and automatically download these libraries with a simple command. Composer solve many problems, you know if your application depends on many libraries and these libraries depend on other libraries like frameworks ,It will be cumbersome to make all these libraries up to date.

continue reading »

Laravel ORM Part2

laravel orm

We discussed later how to retrieve rows as objects and perform basic CRUD methods on them. Well,there are other good tasks that eloquent can perform. Let’s discuss some of them and the rest will be discussed in subsequent parts.

continue reading »

Laravel ORM Part1

laravel orm

Laravel is a MVC PHP framework so it ships with its own ORM component called “Eloquent”. Eloquent will take care of records retrieval for us. We don’t have to write any SQL line. Let’s explore eloquent basic CRUD methods .

continue reading »

Laravel Migrations Part2

laravel migrations

In Laravel Migrations Part1 ,I discussed how to create ,run and update your migrations. It seems you need more and fortunately laravel still have many features to enhance your application migrations. Let’s explore some of them.

continue reading »

Laravel Migrations Part1

laravel migrations

After building your database schemas ,You should be searching if laravel could give some help and run these schemas .Fortunately laravel migrations come in handy. Laravel use custom table to keep track of all migrations that have already run for your application. You know what ?Let’s create a new migration.

continue reading »