My project is using Laravel, but it takes the data from Json in the javascript file, but I want to put the information in my database, how can I do this?
javascript file:
var dt_user_table = $('.datatables-users'),
select2 = $('.select2'),
userView = 'app-user-view-account.html',
statusObj = {
1: { title: 'waiting', class: 'bg-label-warning' },
2: { title: 'active', class: 'bg-label-success' },
3: { title: 'notactive', class: 'bg-label-secondary' }
};
if (dt_user_table.length) {
var dt_user = dt_user_table.DataTable({
ajax: '../../../asset/assets/' + 'json/user-list.json', // JSON file to add data
columns: [
// columns according to JSON
{ data: '' },
{ data: 'full_name' },
{ data: 'role' },
{ data: 'current_plan' },
{ data: 'billing' },
{ data: 'status' },
{ data: 'action' }
],
????????????????????