PHPackages                             saineshmamgain/laravel-setup-helper - 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. saineshmamgain/laravel-setup-helper

ActiveLibrary

saineshmamgain/laravel-setup-helper
===================================

A package to setup basic functionality to a new laravel installation

1.0.2(4y ago)350MITPHP

Since Apr 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/saineshmamgain/laravel-setup-helper)[ Packagist](https://packagist.org/packages/saineshmamgain/laravel-setup-helper)[ RSS](/packages/saineshmamgain-laravel-setup-helper/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Laravel Setup Helper
====================

[](#laravel-setup-helper)

A package to add some extra goodies to your laravel applications.

Setup
-----

[](#setup)

### Install

[](#install)

`composer require saineshmamgain/laravel-setup-helper`

Publish the config

`php artisan vendor:publish --tag=setup-helper-config`

The config has following switches:

`override_request_make_command`

`override_make_job_command`

Set to false if you don't want these functionalities.

### Run

[](#run)

`php artisan setup-helper:install`

Run with `--force` tag to replace previously generated files.

Create a trait
--------------

[](#create-a-trait)

`php artisan make:trait FooTrait`

Create a contract (interface)
-----------------------------

[](#create-a-contract-interface)

`php artisan make:contract FooContract`

Create a Request Class
----------------------

[](#create-a-request-class)

Can be controlled from config

`php artisan make:request FooRequest`

The request class created by this package extends a `BaseRequest` class which in turn extends the original `FormRequest` class.

In this class by default `authorize()` method returns `true`.

While writing Form Requests in Laravel, we have to create a class and define rules in it.

for example if you want to write validations for creating a user you will create a `UserRequest` class

now for editing the user either you will create an `EditUserRequest` class and define the rules, or you will use the `UserRequest` class and will write conditions for applying some rules only when it is an edit request.

To make this more smooth this package Provides `BaseRequest` class.

When installation is complete, the request files created by `php artisan make:request` command will extend this `BaseRequest` class.

`getMethodRules()` To apply rules only on `GET` requests

`postMethodRules()` To apply rules only on `POST` requests

`putMethodRules()` To apply rules only on `PUT` requests

`patchMethodRules()` To apply rules only on `PATH` requests

`deleteMethodRules()` To apply rules only on `DELETE` requests

Contribution
============

[](#contribution)

PRs are welcome.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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 ~18 days

Total

6

Last Release

1776d ago

Major Versions

v0.1.7-alpha → 1.0.02021-06-21

### Community

Maintainers

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

---

Top Contributors

[![saineshmamgain](https://avatars.githubusercontent.com/u/16660523?v=4)](https://github.com/saineshmamgain "saineshmamgain (36 commits)")

### Embed Badge

![Health badge](/badges/saineshmamgain-laravel-setup-helper/health.svg)

```
[![Health](https://phpackages.com/badges/saineshmamgain-laravel-setup-helper/health.svg)](https://phpackages.com/packages/saineshmamgain-laravel-setup-helper)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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