![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkboxs-1024x495.png)
First Part: first of all, we will learn how to design or getdata in blade file
In table we will set one field default value as no while migrating data
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox7-1024x494.png)
test_migration.php
In blade file we will create one table
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/perm1-1024x526.png)
Next, in js we will create one fetch function
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox1-1024x483.png)
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox2-1024x476.png)
onclick java script function
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox-1024x476.png)
Routing:set route
Route::prefix(‘/touroperator’)->group(function () use ($namespace) {
$controller = $namespace.'\TourDashboardController';
$tourcontroller = $namespace.'\TourDetailController';
Route::get(‘toursdetail/{email}’,”$tourcontroller@gettrip”);
});
create function in client side controller
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox2-1024x510.png)
Set env file:
GET_MYHOLIDAYTRIP_URL=/api/v1/j/gettripdetail
Set Config file:
GET_MYHOLIDAYTRIP_URL’ => env(‘GET_MYHOLIDAYTRIP_URL’, ‘not found in .env file’),
Routing set Server side:
Route::get(‘gettripdetail/{email}’, ‘Admin\AdminTPController@tripdetail’);
Create function in server side:
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox3-1024x491.png)
Second Part: thereafter, we will learn how to store data after selecting in blade file
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox4-1-1024x503.png)
Set Routing(Client side microservice) :
Route::prefix(‘/touroperator’)->group(function () use ($namespace) {
$controller = $namespace.'\TourDashboardController';
$tourcontroller = $namespace.'\TourDetailController';
Route::post(‘permissiontour/{email}’, ‘AdminController@addpermission’)->name(‘permissiontour’);
});
Create function in client side controller
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox5-1-1024x515.png)
Set Env file
PERMIT_TRIP_URL=/api/v1/j/permittrip
config file:
‘PERMIT_TRIP_URL’ => env(‘PERMIT_TRIP_URL’, ‘not found in .env file’),
Set Routing in server side Microservice
Route::post(‘/permittrip’, ‘Admin\AdminTPController@storepermission’);
Create function in controller server side microservice
![](https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox6-1-1024x476.png)
- Laravel Error:Integrity constraint violation - May 22, 2021
- Call to a member function createtoken() on null - May 14, 2021
- How to Store Multiple Records using Checkbox in Laravel? - May 12, 2021