How to add Foreign key in Migration – Laravel 8

A foreign key is a field that is used to establish the relationship between two tables via the primary key (You can also use a non-primary field but not recommended).

In this tutorial, I show how you can add a foreign key constraint while creation of table using migration in the Laravel 8 project.

How to add Foreign key in migration - Laravel 8

Read more

Add social share button in Laravel 8 with Laravel Share

Laravel Share package lets you dynamically generate social share buttons from popular social networks to increase social media engagement.

These allow website visitors to easily share the content with their social media connections and networks.

In this tutorial, I show how you can add social share links in your Laravel 8 project using Laravel Share package.

Add social share button in Laravel 8 with Laravel Share

Read more

Datatables AJAX pagination with Search and Sort in Laravel 8

With pagination, it is easier to display a huge list of data on the page.

You can create pagination with and without AJAX.

There are many jQuery plugins are available for adding pagination. One of them is DataTables.

In this tutorial, I show how you can add Datatables AJAX pagination without the Laravel package in Laravel 8.

DataTables AJAX pagination with Search and Sort in Laravel 8

Read more