getTable()); foreach ($columns as &$column) { $type = Schema::getColumnType($table->getTable(), $column); array_push($data, ['name' => $column, 'type' => $type]); } return $data; } public static function getPopulate($model, $route, $id) { echo Form::model($model, ['route' => [$route.'.update', $id]]); } }