MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

How to Store Multiple Records using Checkbox in Laravel?

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

Rakesh K
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x