This is a alias columns example. It provide functionality alias column to refer MySQL functions and column in other table. In this example I use CHAR_LENGTH function to calculate length of name and define length alias.

	$Scaffolding= new Scaffolding("categories");
	// Set columns manually
	$columns       = array('name', 'CHAR_LENGTH(name) AS length', 'actions');
	$Scaffolding->setColumns($columns);
	$content= $Scaffolding->render();
	$parameters= array(
		'scaffolding'=>$content
	);
	return view('demo', $parameters);
	
Name Length
Actions
Teste 5
Test111 7
test 4
sasasdsadaaa 12
Sarel 5
sadasd 6
rfvddwfw 8
raja 4
qqq 3
Prova 5
Showing 1 to 10 of 70 entries