public/js/music_playlist.js
/**
 * Get song form view from Laravel.
 */
Get song form view from Laravel.
Get song form view from Laravel .
function loadView_SongForm() {
    var url = base_url + "/songs/create";   
    fetch(url, {
        credentials: "same-origin",
        method: 'GET',
        headers:{
            'Content-Type': 'application/json',
            'X-CSRF-TOKEN': getCSRFToken()
        }
    })
    .then(function(response) {
        return response.text();
    })
    .then(function(text) {
        mainContainer.innerHTML = text;
    });          
}
function loadView_SongForm ( ) { var url = base_url + "/songs/create" ; fetch ( url , { credentials : "same-origin" , method : 'GET' , headers : { 'Content-Type' : 'application/json' , 'X-CSRF-TOKEN' : getCSRFToken ( ) } } ) . then ( function ( response ) { return response . text ( ) ; } ) . then ( function ( text ) { mainContainer . innerHTML = text ; } ) ; }
Get song form view from Laravel.
Get song form view from Laravel .