PHPackages                             thulisoft/laravel-make-trait - 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. thulisoft/laravel-make-trait

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

thulisoft/laravel-make-trait
============================

Rapid trait generation in Laravel.

06PHP

Since Feb 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/thulisoft/laravel-make-trait)[ Packagist](https://packagist.org/packages/thulisoft/laravel-make-trait)[ RSS](/packages/thulisoft-laravel-make-trait/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Rapid trait generation in Laravel.

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

[](#installation)

Install via composer:

```
composer require thulisoft/laravel-make-trait

```

### Registering the service provider

[](#registering-the-service-provider)

For Laravel 5.4 and lower, add the following line to your `config/app.php`:

```
/*
 * Package Service Providers...
 */
Thulisoft\MakeTrait\Providers\MakeTraitServiceProvider::class,
```

For Laravel 5.5 and greater, the package will auto register the provider for you.

### Using Lumen

[](#using-lumen)

To register the service provider, add the following line to `app/bootstrap/app.php`:

```
$app->register(Thulisoft\MakeTrait\Providers\MakeTraitServiceProvider::class);
```

Quick start
-----------

[](#quick-start)

### Generating a trait

[](#generating-a-trait)

```
php artisan make:trait YourTraitName

```

Your trait will be created in the `App/Traits` directory.

### Subdirectories

[](#subdirectories)

If you wish to further organize your traits by subdirectories, you can do so in the same way you would any other `artisan make` command.

```
php artisan make:trait Orders\\StatusCompleted --scope

```

Your StatusCompleted trait will be created in the `App/Traits/Orders` directory and namespaced appropriately.

Arguments
---------

[](#arguments)

**-b** or **--boot**

```
php artisan make:trait YourTraitName --boot

```

Creates a trait with a boot method.

**-s** or **--scope**

```
php artisan make:trait YourTraitName --scope

```

Creates a trait with a scope method.

Purpose
-------

[](#purpose)

Laravel provides wonderful time saving generation commands for almost all of the components developers need to build a successful web application. This package introduces the convenience of Laravel's `artisan make` for trait generation.

Testing
-------

[](#testing)

Due to the simple nature of this package, testing has been purposefully omitted.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1f59922ad5b2f0b222cc286c815ed3995385179222853881c08f4433ac7f097?d=identicon)[thulisoft](/maintainers/thulisoft)

---

Top Contributors

[![selvan1996](https://avatars.githubusercontent.com/u/123059488?v=4)](https://github.com/selvan1996 "selvan1996 (2 commits)")

### Embed Badge

![Health badge](/badges/thulisoft-laravel-make-trait/health.svg)

```
[![Health](https://phpackages.com/badges/thulisoft-laravel-make-trait/health.svg)](https://phpackages.com/packages/thulisoft-laravel-make-trait)
```

###  Alternatives

[freshbitsweb/laratables

Ajax support of DataTables for Laravel

4851.2M3](/packages/freshbitsweb-laratables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
