public function saveRow($name, $id, Request $request)
{
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();
# Save all the data
require 'Data/Edit/DevSave.php';
return redirect()->route('Laralum::CRUD_table', ['table' => $name])->with('success', trans('laralum.msg_row_saved', ['id' => $id]));
}