How to upload file using cURL in PHP

The majority of websites require users to upload files (such as images, documents, etc.) to web pages. Whether you’re creating a platform for file sharing or just need to upload files to a server.

If you are on the same server and upload file then you can easily upload it either directly using PHP or AJAX but if you want to upload it to another server then you have to use cURL.

This tutorial will guide you through the process of using PHP and cURL to upload files, making the web development process faster and more efficient. With just a few simple steps, you can easily upload files to the server.

How to upload file using cURL in PHP

Read more

How to add Edit Delete button in Yajra DataTables – Laravel

In Laravel using Yajra DataTables package, you can easily add pagination in less time.

To add edit delete button in the DataTable need to use addColumn() method.

In this tutorial, I am assuming you have already installed the Yajra package, if not then you can view this tutorial.

I am implementing this on Laravel 9.

How to add Edit Delete button in Yajra DataTables – Laravel

Read more

Step-by-Step Guide: CodeIgniter 4 Adding Foreign Key in Migration

In a database, a foreign key is a field that references another table.

They keep track of related records and which table they exist in. They also let you know what record they relate to, which means updating them is simple and quick.

In this tutorial, I show how you can add a foreign key while creating table using migration in CodeIgniter 4.

Step-by-Step Guide: CodeIgniter 4 Adding Foreign Key in Migration

Read more

Getting Started with CodeIgniter 4 Database Seeding: A Beginner Guide

Database seeding is a way of populating a database with test data that can be used for initial testing to explore the various functions of your application instead of having to create test users one by one every time you want to test something new.

In CodeIgniter 4 database seeding feature is available.

This post guides you through the creation of database seeding and running single or multiple seeding files in CodeIgniter 4.

Getting Started with CodeIgniter 4 Database Seeding: A Beginner Guide

Read more