public function getValues(Request $request){
$typ=$request->get('typ');
$stellentyp=$request->get('stellentyp');
$bereich=$request->get('bereich');
return view('test.result',['typ' => $typ, 'stellentyp', $stellentyp, 'bereich', $bereich]);
}
this is my controller function now. Is it possible to get this view:
return view('test.$stellentyp',['typ' => $typ, 'stellentyp', $stellentyp, 'bereich', $bereich]);
i want that the user can select the "stellentyp" and then the view with that "stellentyp" should be shown
i dont know if its possible in laravel , but i know its posible in php
thank you! :)
"test.$stellentyp"instead of'test.$stellentyp'