PHPackages                             darkghosthunter/laratraits - 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. darkghosthunter/laratraits

AbandonedArchivedLibrary

darkghosthunter/laratraits
==========================

Laratraits is a package containing useful traits to use along your Controllers, Service Providers, Commands and what not. Take a look!

v3.1.0(4y ago)1442.2k14MITPHPPHP ^7.4||^8.0

Since Jan 22Pushed 3y agoCompare

[ Source](https://github.com/DarkGhostHunter/Laratraits)[ Packagist](https://packagist.org/packages/darkghosthunter/laratraits)[ Docs](https://github.com/darkghosthunter/laratraits)[ Fund](https://paypal.me/darkghosthunter)[ Fund](https://ko-fi.com/DarkGhostHunter)[ RSS](/packages/darkghosthunter-laratraits/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (10)Dependencies (5)Versions (29)Used By (0)

[![Paul Felberbauer - Unsplash #tM16SjCYy84](https://camo.githubusercontent.com/43a9fcd428862f9f8226b84c0eb680f38d1b9e38d2db1fee0adc1b2eeb156ef3/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313532363831343839353534332d6235626537323638646431653f69786c69623d72622d312e322e3126697869643d65794a6863484266615751694f6a45794d446439266175746f3d666f726d6174266669743d63726f7026773d3132303026683d34303026713d3830)](https://camo.githubusercontent.com/43a9fcd428862f9f8226b84c0eb680f38d1b9e38d2db1fee0adc1b2eeb156ef3/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313532363831343839353534332d6235626537323638646431653f69786c69623d72622d312e322e3126697869643d65794a6863484266615751694f6a45794d446439266175746f3d666f726d6174266669743d63726f7026773d3132303026683d34303026713d3830)

[![Latest Version on Packagist](https://camo.githubusercontent.com/695948b28fadcac193912e8bd43a22a3a518675b104cd9d11594cf7d3b9b29da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461726b67686f737468756e7465722f6c6172617472616974732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/darkghosthunter/laratraits) [![License](https://camo.githubusercontent.com/1546361067d2897cb6f1c9b93eb74fb215b6ec659314d71d2ad0b12777dfb45c/68747470733a2f2f706f7365722e707567782e6f72672f6461726b67686f737468756e7465722f6c6172617472616974732f6c6963656e7365)](https://packagist.org/packages/darkghosthunter/laratraits) [![](https://camo.githubusercontent.com/fef016c43a216cb9bd89e687165ddf8ea6a2af003a92d4d42d1950a37b4185ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461726b67686f737468756e7465722f6c6172617472616974732e737667)](https://camo.githubusercontent.com/fef016c43a216cb9bd89e687165ddf8ea6a2af003a92d4d42d1950a37b4185ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461726b67686f737468756e7465722f6c6172617472616974732e737667) [![](https://github.com/DarkGhostHunter/Laratraits/workflows/PHP%20Composer/badge.svg)](https://github.com/DarkGhostHunter/Laratraits/workflows/PHP%20Composer/badge.svg) [![Coverage Status](https://camo.githubusercontent.com/198488ee6135a02207f1a0bd801633d2e6f8b91811199bb7af805c6963599c35/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4461726b47686f737448756e7465722f4c6172617472616974732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/DarkGhostHunter/Laratraits?branch=master) [![Laravel Octane Compatible](https://camo.githubusercontent.com/70359a356da237cd29561bc5d0bb80baae775b5ff62f288ed324755382858342/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2532304f6374616e652d436f6d70617469626c652d737563636573733f7374796c653d666c6174266c6f676f3d6c61726176656c)](https://github.com/laravel/octane)

Laratraits
==========

[](#laratraits)

Laratraits is a Laravel package containing useful traits and some classes to use along your Models, Controllers, Service Providers and what not. Take a look!

Requirements
------------

[](#requirements)

- Laravel 8.0.
- PHP 7.4, PHP 8.0 or later.

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

[](#installation)

Fire up Composer and that's it.

```
composer require darkghosthunter/laratraits

```

This package doesn't use any Service Provider.

Usage
-----

[](#usage)

Just check any of these traits. Each one and other classes contains a brief explanation on how to use in the first lines.

If you want to use one, [just do it](https://www.php.net/manual/en/language.oop5.traits.php).

```
