Download the PHP package achyutn/laravel-helpers without Composer
On this page you can find all versions of the php package achyutn/laravel-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-helpers
Laravel Helpers
Installation
You can install the package via composer:
Usage
Traits
You can use following traits for your models:
HasTheSlug
This trait is used to generate slug for your model. It uses cviebrock/eloquent-sluggable package.
Note:
You must have slug
column in your table and the source column for the slug should be title
.
HasTheMedia
This trait is used to add media conversions over the HasMedia
trait from spatie/laravel-medialibrary package.
You can use:
cover()
to get original image.small_cover()
to get small image (in format:WebP
).medium_cover()
to get medium image (in format:WebP
).large_cover()
to get large image (in format:WebP
).
HasTheDashboardTraits
This trait is used to add HasTheSlug
and HasTheMedia
traits to your model along with the HasLog
trait from Dipesh79/LaravelUserLogs package.
Nepali Helpers
You can simply use following helper functions:
english_nepali_number
Converts english number to nepali number.
english_nepali
To select value based on the locale.
All versions of laravel-helpers with dependencies
dipesh79/laravel-user-logs Version ^1.6.1
rap2hpoutre/laravel-log-viewer Version ^2.3.0
spatie/laravel-medialibrary Version ^10.0|^11.0
cviebrock/eloquent-sluggable Version ^10.0|^11.0