Passing json through compact laravel and getting into scripts.js

0

I'm putting fullCalendar into my application,

return view('dashboard.cadastro.reservaArea', compact('areas', 'reservas'));

I'm giving return view passing reservations through compact , so far so good.

After that I need to get this JSON 'reservations' in the location below,

$(function() {
    $('#calendar').fullCalendar({
        events: [
            {
                JSON AQUI
            }
        ],   
    });
});
    
asked by anonymous 15.04.2018 / 21:43

0 answers