PHPackages                             achyutn/laravel-helpers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. achyutn/laravel-helpers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

achyutn/laravel-helpers
=======================

Ready to use Laravel Helpers

v0.11.1(2mo ago)34.8k↓50%MITPHPPHP &gt;=7.4CI passing

Since Jan 3Pushed 2mo agoCompare

[ Source](https://github.com/achyutkneupane/laravel-helpers)[ Packagist](https://packagist.org/packages/achyutn/laravel-helpers)[ Fund](https://www.buymeacoffee.com/achyutn)[ GitHub Sponsors](https://github.com/achyutkneupane)[ RSS](/packages/achyutn-laravel-helpers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (47)Used By (0)

Laravel Helpers
===============

[](#laravel-helpers)

[![Lint PR](https://github.com/achyutkneupane/laravel-helpers/actions/workflows/prlint.yml/badge.svg)](https://github.com/achyutkneupane/laravel-helpers/actions/workflows/prlint.yml)[![Bump version](https://github.com/achyutkneupane/laravel-helpers/actions/workflows/tagrelease.yml/badge.svg)](https://github.com/achyutkneupane/laravel-helpers/actions/workflows/tagrelease.yml)[![Latest Stable Version](https://camo.githubusercontent.com/6bc7240eebc094b684250520e94af33477b249b6c5cc54fd0ad641e1574a483d/687474703a2f2f706f7365722e707567782e6f72672f6163687975746e2f6c61726176656c2d68656c706572732f76)](https://packagist.org/packages/achyutn/laravel-helpers)[![Total Downloads](https://camo.githubusercontent.com/338cfa5ea1bd8800500982bd9c21503efd114be8490905aa6d0894182756a130/687474703a2f2f706f7365722e707567782e6f72672f6163687975746e2f6c61726176656c2d68656c706572732f646f776e6c6f616473)](https://packagist.org/packages/achyutn/laravel-helpers)[![Dependents](https://camo.githubusercontent.com/908d68dddc403aa362feec45bb6e1a83f93dd566aeb4a2d76cd901f2ae7891ab/687474703a2f2f706f7365722e707567782e6f72672f6163687975746e2f6c61726176656c2d68656c706572732f646570656e64656e7473)](https://packagist.org/packages/achyutn/laravel-helpers)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require achyutn/laravel-helpers
```

Usage
-----

[](#usage)

### Traits

[](#traits)

You can use following traits for your models:

#### `HasTheSlug`

[](#hastheslug)

This trait is used to generate slug for your model. It uses [cviebrock/eloquent-sluggable](https://github.com/cviebrock/eloquent-sluggable) package.

`Note:` You must have `slug` column in your table. And the source is by default `title` column but can be changed by setting the `$sluggableColumn` property in your model.

```
