journeycx/laratools

Laravel 的实用库

dev-main 2024-05-12 10:14 UTC

This package is auto-updated.

Last update: 2024-09-12 10:57:49 UTC


README

Laratools - Laravel 的实用库

isEmpty()

添加了 isEmpty 函数,它几乎可以在任何变量上工作,包括但不限于 Collection、Paginator、LengthAwarePaginator、Eloquent Collection。

ifIsset()

添加了 ifIsset,它类似于 isset,但是第二个和第三个参数将用于判断项目是否存在。