In previous post, we talked about how to install Bootstrap 4 instead of Tailwind CSS in Laravel 8 . Today, we will learn about how to use ajax requests in Laravel by building simple To-Do CRUD application functioning entirely via ajax requests in Laravel 8.

Since, this article is sequel to our Laravel 8 Bootstrap Installation tutorial, you should definitely check it out, if you want to learn how to install Bootstrap in Laravel 8.

So, now that we have new laravel project with bootstrap and auth installed, let’s get started.

1) Create Database Migration

Let’s create a database migration for our todos:

php artisan make:migration create_todos_table --create=todos

Now, we should update our newly created migration file by adding required columns as shown below:

public function up()
    Schema::create('todos', function (Blueprint $table) {

Now, run the migration:

php artisan migrate

#laravel #bootstrap #jquery #ajax

Laravel 8/7: Ajax CRUD Tutorial using jQuery & Bootstrap
15.75 GEEK