The edit purpose finds a submit with the specified id in the database and renders the assets/sights/posts/edit.blade.php file with the post facts within a sort. Of course it is possible to convert types or collections to JSON working with their toJson technique, nonetheless a transformer offers you a lot more Manage about the JSON serialization