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


<?php

namespace App\Http\Controllers;

use 
Illuminate\Http\Request;

class 
xRelationController extends Controller
{
    public function 
index()
    {
        
$xcrud Xcrud_get_instance();
        
$xcrud->table('gallery');
        
$xcrud->change_type('image''image'false, array(
            
'width' => 450,
            
'path' => '../uploads/gallery',
            
'thumbs' => array(array(
                    
'height' => 55,
                    
'width' => 120,
                    
'crop' => true,
                    
'marker' => '_th'))));
 
        
$xcrud->column_callback("active","getStatusSwitchRadio_Gallery");
        
$xcrud->create_action("deactivate_gallery","deactivate_gallery");
        
$xcrud->create_action("activate_gallery","activate_gallery");
        
$render $xcrud->render();   
        return 
view('xcrud_simple', ['render' => $render]);
        
    }
}

Simple relation

#FirstnameLastnameOffice in 
1DianeMurphysNYC View Edit Remove
2MaryPattersonLondon View Edit Remove
3JeffFirrelliLondon View Edit Remove
4123PattersonLondon View Edit Remove
5Gerard2BondurNYC View Edit Remove
6Anthony8BowSan Francisco View Edit Remove
7LeslieJenningsTokyo View Edit Remove
8LeslieThompsonSan Francisco View Edit Remove
9JulieFirrelliBoston View Edit Remove
10StevePattersonBoston View Edit Remove
Search