Download the PHP package aweram/traits-helpers without Composer
On this page you can find all versions of the php package aweram/traits-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aweram/traits-helpers
More information about aweram/traits-helpers
Files in aweram/traits-helpers
Download aweram/traits-helpers
More information about aweram/traits-helpers
Files in aweram/traits-helpers
Vendor aweram
Package traits-helpers
Short Description Helpful traits and helper functions
License MIT
Package traits-helpers
Short Description Helpful traits and helper functions
License MIT
Please rate this library. Is it a good library?
Informations about the package traits-helpers
Описание
Пакет содержит два trait
для моделей. ShouldSlug
генерирует slug
для модели при создании и обновлении. ShuldHumanDate
добавляет к модели аттрибуты форматированной даты, даты формируются при помощи Carbon
, через функцию date_helper()
.
date_helper()
использует класс DateHelper
, в котором есть методы:
forFilter
формирует дату для фильтра, если указать дату "до", то добавит к дате время23:59:59
, иначе добавит00:00:00
changeTz
меняет часовой пояс наEurope/Moscow
format
форматирует дату, по заданному формату, по умолчанию этоd.m.Y H:i
All versions of traits-helpers with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
^11.0
The package aweram/traits-helpers contains the following files
Loading the files please wait ....