How to create Helper function and use it in Laravel

A Helper function is a small piece of code that performs a specific task or operation and can be used anywhere in your application.

In Laravel you need to create a new PHP file to write Helper functions and specify the file path in the composer.json file.

In this article, you will learn how to create Helper functions in Laravel and how to use it.

How to Create and Use Helper function in CodeIgniter 4

Read more

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