In this tutorial I'm going to describe how to add data in DataTable in laravel 8 we will create single page companies ajax crud application (SPA) using dataTables js, modal and jQuery in laravel 8. 1st step Install laravel project and new setup, lets open the terminal C:\xampp\htdocs and paste below code
lets go to .env folder and put database name and connect to database.
And add the following service providers into app.php file: Go to -> config/app.php and put in providers section Then publish laravel datatables vendor package by using below command: Simply copy this code and paste in companies model