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
test_migration.php
In blade file we will create one table
Next, in js we will create one fetch function
onclick java script function
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
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:
Second Part: thereafter, we will learn how to store data after selecting in blade file
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
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
- 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