public function create($name)
{
Laralum::permissionToAccess('laralum.CRUD.access');
# Check if you're allowed to create rows
require 'Data/Create/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);
}
# Get all the data
require 'Data/Create/DevGet.php';
return view('laralum/CRUD/create', ['name' => $name, 'fields' => $fields, 'confirmed' => $confirmed, 'empty' => $empty, 'encrypted' => $encrypted, 'hashed' => $hashed, 'masked' => $masked, 'table' => $table, 'code' => $code, 'wysiwyg' => $wysiwyg, 'relations' => $relations]);
}