How to add pagination using Yajra Datatables in Laravel 9

DataTables is a jQuery library for implementing pagination.

For adding AJAX pagination needs to write a long script that – count total records with and without filters, fetch records, initialize Array with data, and return the JSON array with required fields.

In Laravel, there is a Yajra DataTables package that makes this pagination process a little easier to implement.

How to add pagination using Yajra Datatables in Laravel 9

Read more

Setup Bootstrap auth Login and Registration in Laravel 9

Have you ever built a website or a web application that requires users to login and register to use its features? If so, you’ve probably realized how much work it can be to create your own authentication system from scratch.

Laravel already provided user authentication but it is not by default implemented on the project.

You need to manually run a few provided commands to set it up.

In this article, you will see how to implement Bootstrap auth Login and Registration in Laravel 9 applications.

Setup Bootstrap auth Login and Registration in Laravel 9

Read more

What is Database Seeding in Laravel?

In Laravel seeding is a process by which you can insert dummy or sample data into a database.

Seeding is a helpful tool for development because it allows you to insert data into your database table without having to write individual SQL statements. Seeder files are also easy to create and maintain.

With this, you can test the application without having to enter real data.

In this post, I provide a step-by-step guide on how to create and run a seed file in Laravel.

What is Database Seeding in Laravel?

Read more