PHPackages                             codewiser/laravel-make - 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. [CLI &amp; Console](/categories/cli)
4. /
5. codewiser/laravel-make

AbandonedArchivedLibrary[CLI &amp; Console](/categories/cli)

codewiser/laravel-make
======================

Provide Laravel make:builder and make:collection commands

v1.1.1(2y ago)14221MITPHPPHP ^8.0

Since Aug 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/C0deWiser/laravel-make)[ Packagist](https://packagist.org/packages/codewiser/laravel-make)[ RSS](/packages/codewiser-laravel-make/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (6)Used By (1)

Some more `artisan:make` templates
==================================

[](#some-more-artisanmake-templates)

Make Collection
---------------

[](#make-collection)

Run command.

```
php artisan make:collection UserCollection
```

It will create Collection class.

```
namespace App\Collections;

use App\Models\User as Model;
use Illuminate\Database\Eloquent\Collection;

/**
 * @method Model first(callable $callback = null, $default = null)
 * @method Model firstOrFail($key = null, $operator = null, $value = null)
 * @method Model firstWhere($key, $operator = null, $value = null)
 * @method Model find($key, $default = null)
 * @method Model last(callable $callback = null, $default = null)
 * @method Model sole($key = null, $operator = null, $value = null)
 */
class UserCollection extends Collection
{
    //
}
```

Register it to a model.

```
namespace App\Models;

use App\Collections\UserCollection;
use Illuminate\Database\Eloquent\Model;

/**
 * @method static UserCollection all($columns = ['*'])
 */
class User extends Model
{
    public function newCollection(array $models = []): UserCollection
    {
        return new UserCollection($models);
    }
}
```

Make Builder
------------

[](#make-builder)

Run command.

```
php artisan make:builder UserBuilder
```

It will create Builder class.

```
namespace App\Builders;

use App\Models\User as Model;
use Closure;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;

/**
 * @method Model getModel()
 * @method Model make(array $attributes = [])
 * @method Model create(array $attributes = [])
 * @method Model forceCreate(array $attributes)
 * @method Model sole($columns = ['*'])
 * @method Model find($id, $columns = ['*'])
 * @method Model findOr($id, $columns = ['*'], Closure $callback = null)
 * @method Model findOrNew($id, $columns = ['*'])
 * @method Model findOrFail($id, $columns = ['*'])
 * @method Model first($columns = ['*'])
 * @method Model firstOr($columns = ['*'], Closure $callback = null)
 * @method Model firstOrNew(array $attributes = [], array $values = [])
 * @method Model firstOrFail($columns = ['*'])
 * @method Model firstOrCreate(array $attributes = [], array $values = [])
 * @method Model firstWhere($column, $operator = null, $value = null, $boolean = 'and')
 * @method Model updateOrCreate(array $attributes, array $values = [])
 *
 * @method UserCollection|Model[] findMany($ids, $columns = ['*'])
 * @method UserCollection|Model[] get($columns = ['*'])
 */
class UserBuilder extends Builder
{
    //
}
```

Register it to a model.

```
namespace App\Models;

use App\Builders\UserBuilder;
use Illuminate\Database\Eloquent\Model;

/**
 * @method static UserBuilder query()
 */
class User extends Model
{
    public function newEloquentBuilder($query): UserBuilder
    {
        return new UserBuilder($query);
    }
}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~61 days

Total

5

Last Release

811d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1220316?v=4)[Michael Michaelson](/maintainers/Cellard)[@Cellard](https://github.com/Cellard)

---

Top Contributors

[![Cellard](https://avatars.githubusercontent.com/u/1220316?v=4)](https://github.com/Cellard "Cellard (12 commits)")

---

Tags

consolelaravelartisanbuildercollectionmake

### Embed Badge

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

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16458.3k8](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76130.4k1](/packages/rahul900day-laravel-console-spinner)[ronasit/laravel-entity-generator

Provided console command for generating entities.

2053.1k](/packages/ronasit-laravel-entity-generator)[perryvandermeer/laravel-console-validator

Validate arguments for Laravel commands

109.8k](/packages/perryvandermeer-laravel-console-validator)

PHPackages © 2026

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