I have some Ajax making a post request to a function in my controller (postIndex) I would like to echo this variable ($a) to the view.
public function postIndex( \Illuminate\Http\Request $request ){
/*
* CODE
*/
$a = "string";
echo $a;
return SOMETHING;
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire