|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/master-laravel-collections/
课程评论:没有评论
**Master Laravel Collections 课程总结** 本课程专注于教授如何在 Laravel 项目中高效、快速地处理数组和对象,从而节省宝贵的开发时间,避免大量使用 `for` 循环。 **课程核心内容:** * **Laravel Collection 的高效使用:** 深入学习 Collection 类,了解它如何帮助我们以专业、高效的方式操作数组和对象。 * **从原生循环迁移:** 学习如何将现有的 PHP 原生数组和对象循环逻辑完全迁移到 Laravel Collection。 * **Collection 操作:** * **映射 (Mapping):** 如何在 Collection 中进行数据转换。 * **修改 (Modifying):** 如何对 Collection 中的数据进行各种修改。 * **函数应用:** 结合真实世界案例,学习应用各种 Collection 函数。 * **复杂计算:** 实现任意深度数组的平均值计算。 * **高级过滤:** 学习各种复杂场景下的 Collection 过滤,以及根据不同逻辑进行过滤。 * **专业排序:** 掌握 Collection 的专业排序方法。 * **分组 (Grouping):** 如何对 Collection 中的数据进行分组。 * **去重 (Uniqueness):** 学习如何使 Collection 中的元素保持唯一。 * **`where` 子句过滤:** 利用 `where` 子句进行高效的 Collection 过滤。 * **重置索引:** 方便地重置 Collection 的索引。 * **实际应用场景:** 了解在你的 Laravel 项目中,何时以及如何使用 Collection。 **技术要求:** 本课程使用 Laravel 9 版本,但内容对 Laravel 6.x 及以上版本均适用。 **课程价值:** 完成本课程后,您将能够完全摒弃 PHP 原生的数组和对象处理方法,转向使用 Laravel Collection,极大地提升开发效率和代码质量。
If you want to work with arrays and objects quickly and efficiently in you Laravel projects , and save time playing around loops, here is the right place. In this course we will learn together one of the most powerful Laravel features is collection.Collection is a class that enables us to working with arrays and objects in professional and speed way so it saves our time by avoiding using for loops. What does exactly this course include ?using Laravel collection in efficient ways.completely migration from loops to collection. mapping collection. Modifying collection. applying collection functions with real world examples. calculating average for any array with any depth .Filtering collections with complex cases and according to different logics. Sorting collections in professional way.Grouping collections.Making collections unique.using where clauses to filter collections. reseting indexes in easy way. when and where to use collection in your projectand more...Which Laravel version we will use in this course ?In this course I use latest Laravel version (now it's 9 in version ) but the content is valid for these versions 6.x and above.Note: After following and watching the course I think you will completely abandon php native array and objective methods and will move to Laravel collection.