Download Laravel-xCRUD Integration Full Code that includes this full demo


<?php

namespace App\Http\Controllers;

use 
Illuminate\Http\Request;

class 
xLabelsController extends Controller
{
    public function 
index()
    {
        
$xcrud Xcrud_get_instance();
        
$xcrud->table('employees');
        
$xcrud->label('lastName','Surname');
        
$xcrud->label('firstName','Name');
        
$xcrud->label('officeCode','Office code')->label('reportsTo','Reports to')->label('jobTitle','Job title');
        
$xcrud->column_name('firstName''NaMe!'); // only column renaming
        
$xcrud->column_class('extension','align-center font-bold'); // any classname
        
$render $xcrud->render();
        return 
view('xcrud_simple', ['render' => $render]);
        
    }
}

Employees

#SurnameNaMe!ExtensionEmailOffice codeReports toJob title 
1MurphysDiane234james@classicmodelcars.com31232President View Edit Remove
2PattersonMaryx324mpatterso@classicmodelcars.com710090VP Sales View Edit Remove
3FirrelliJeffx9273gbondur@classicmodelcars.com71002VP Marketing View Edit Remove
4Patterson123x4645wpatterson@classicmodelca.com71056Sales Manager (APAC) View Edit Remove
5BondurGerard2x540ygbondur@classicmodelcars.com31050Sale Manager (EMEA) View Edit Remove
6BowAnthony8x5428abow@classicmodelcars.com11056Sales Manager (NA) View Edit Remove
7JenningsLesliex540ljennings@classicmodelcars.com51143Sales Rep 2 View Edit Remove
8ThompsonLesliex4065lthompson@classicmodelcars.com11143Sales Rep 3 View Edit Remove
9FirrelliJuliex2173jfirrelli@classicmodelcars.com21143Sales Rep View Edit Remove
10PattersonStevex4334spatterson@classicmodelcars.com21143Sales Rep View Edit Remove
Search