Skip to content

Commit 03431ea

Browse files
authored
Merge pull request #601 from Laravel-Backpack/fix-typo
fix typos in update operation
2 parents c05046e + 19eecff commit 03431ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

6.x/crud-operation-update.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ class Product extends Model
374374
protected $primaryKey = 'id';
375375
protected $fillable = ['name', 'category_id', 'options', 'price', 'tags'];
376376
protected $translatable = ['name', 'options'];
377+
}
377378
```
378379

379380
> You DO NOT need to cast translatable string columns as array/json/object in the Eloquent model. From Eloquent's perspective they're strings. So:
@@ -453,4 +454,4 @@ If you want to display a **Delete** button right on the **Update** operation, yo
453454
}
454455
```
455456

456-
This will allow admins to remove entries right from the **Update Operation**, and it will redirect them back ot the **List Operation** afterwards.
457+
This will allow admins to remove entries right from the **Update Operation**, and it will redirect them back to the **List Operation** afterwards.

0 commit comments

Comments
 (0)