Skip to main content

Code Examples of mapInto

Discover how to use Laravel's mapInto method in real-world applications. Browse 1 examples from popular open-source projects.

1 example
The mapInto() method iterates over the collection, creating a new instance of the given class by passing the value into the constructor.
Read more in the official Laravel docs.

Gummibeer/gummibeer.de

  • 11
  • Created May 2020
  • Updated Apr 2026

Files in this example

  • app/Post.php
View full example