public function row($name, $id)
{
Laralum::permissionToAccess('laralum.CRUD.access');
# Check if you're allowed to edit rows
require 'Data/Edit/DevGet.php';
if (!$allow) {
abort(404);
}
# Check if table exists
if (!Schema::hasTable($name)) {
abort(404);
}
# Check if column exists
if (!Schema::hasColumn($name, 'id')) {
abort(404);
}
# Check if row exists
if (!DB::table($name)->where('id', $id)->get()) {
abort(404);
}
$row = DB::table($name)->where('id', $id)->first();
# Get all the data
require 'Data/Edit/DevGet.php';
return view('laralum/CRUD/row', ['row' => $row, 'name' => $name, 'fields' => $fields, 'confirmed' => $confirmed, 'empty' => $empty, 'encrypted' => $encrypted, 'hashed' => $hashed, 'masked' => $masked, 'table' => $table, 'code' => $code, 'wysiwyg' => $wysiwyg, 'relations' => $relations]);
}