Before someone say this is a duplicate. Yes i have found this:
Just to have an example. After he hit the button it should move the shown row into the database just like it is shown here and delete it afterwards. I really dont know how to start something like this in laravel and i really cant find something related so if you need code snippets from what i have just tell me what you need. I appreciate every help thank you.
Maybe this will make it more clearly:
$user_input = $request->userInput $scores = DB::table('cd') ->join('customers', 'cd.fk_lend_id', '=', 'customer .lend_id') ->select('cd.fk_lend_id','cd.serialnumber','users.name', 'cd.created_at as lend on') ->where('cd.fk_lend_id',$request->$user_input) ->get();