Home > Software engineering >  Laravel , save with new line between two textboxes
Laravel , save with new line between two textboxes

Time:05-21

public function store(Request $request, $id)
{
    $newEntry = new PaperPage();
        $newEntry->page1 = $request->input('textbox1') .'HERE'.$request->input('textbox2');        
        $newEntry->save();
}

i just need a new line code between the textboxes, ineed it to place on the HERE

CodePudding user response:

You can contact the \n at location of HERE eg:

$newEntry->page1 = $request->input('textbox1') .'\n'.$request->input('textbox2');   
  • Related