Is it possible to concatenate a view and a json to show everything at once?
public function index(){
view('admin.calendario')
$data = Event::get(['id','title','placa','start']);
return Response()->json($data);
}
I have the view and the json and I need to return the two at the same time to be able to visualize the information in a calendar but I could not
the library that I use is full calendar the question is that it saves the data that I entered but we can see them
then it occurred to me to concatenate the json to the seen to be able to visualize all the data that has been saved and in its entered position The idea is to visualize it in the following way
The json I'm collecting is:
public function index()
{
$data = Event::get(['id','title','placa','start']);
return Response()->json($data);
}
but I could not achieve it if I return one I can not do the other