PHPackages                             trueandfalse/essential - 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. trueandfalse/essential

ActiveLibrary

trueandfalse/essential
======================

Essential tools for Laravel Projects

1.0.79(6mo ago)0116MITPHPPHP ^8.0

Since Aug 30Pushed 6mo agoCompare

[ Source](https://github.com/trueandfalse-gt/essential)[ Packagist](https://packagist.org/packages/trueandfalse/essential)[ RSS](/packages/trueandfalse-essential/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (80)Used By (0)

---

Essential
=========

[](#essential)

### Installation

[](#installation)

```
 composer require trueandfalse/essential

```

Multitenancy
------------

[](#multitenancy)

#### Provider configuration

[](#provider-configuration)

copy in boostrap/providers.php

```
 Trueandfalse\essentail\Providers\EssentialTenantServiceProvider::class,

```

#### Vendor Published

[](#vendor-published)

```
 php artisan vendor:publish --tag=essentenant-migrations

```

#### Database Configuration

[](#database-configuration)

add config/database.php

```
 'tenants' => [
    'driver'         => 'mysql',
    'url'            => env('DATABASE_URL_TENANTS'),
    'host'           => env('TENANTS_HOST', '127.0.0.1'),
    'port'           => env('TENANTS_PORT', '3306'),
    'database'       => env('TENANTS_DATABASE', 'forge'),
    'username'       => env('TENANTS_USERNAME', 'forge'),
    'password'       => env('TENANTS_PASSWORD', ''),
    'unix_socket'    => env('TENANTS_SOCKET', ''),
    'charset'        => 'utf8mb4',
    'collation'      => 'utf8mb4_unicode_ci',
    'prefix'         => '',
    'prefix_indexes' => true,
    'strict'         => true,
    'engine'         => null,
    'options'        => extension_loaded('pdo_mysql') ? array_filter([PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),]) : [],]

```

#### use in .env

[](#use-in-env)

```
 DB_CONNECTION=mysql
 DB_HOST=mysql
 DB_PORT=3306
 # DB_DATABASE=
 # DB_USERNAME=
 # DB_PASSWORD=

 TENANTS_CONNECTION=tenants
 TENANTS_HOST=mysql
 TENANTS_PORT=3306
 TENANTS_DATABASE=app_tenants
 TENANTS_USERNAME=root
 TENANTS_PASSWORD="password"

```

#### Migrate

[](#migrate)

Connection Tenants migrate

```
 // Custom Database
 php artisan migrate --database=tenants --path=database/migrations/tenants
 // OR
 php artisan essential:migrate-tenants

```

#### Tenants migrate

[](#tenants-migrate)

```
 php artisan migrate:tenants

```

#### Tenants Seed

[](#tenants-seed)

```
 php artisan db:tenants

```

Authenticated Access
--------------------

[](#authenticated-access)

#### Provider configuration

[](#provider-configuration-1)

copy in boostrap/providers.php

```
 Trueandfalse\essentail\Providers\EssentialAccessServiceProvider::class,

```

#### Vendor Published

[](#vendor-published-1)

```
 php artisan vendor:publish --tag=essenauth-migrations
 php artisan vendor:publish --tag=essenauth-models
 php artisan vendor:publish --tag=essenauth-seeders

```

#### Authentication Migrate, Seeder

[](#authentication-migrate-seeder)

```
 php artisan migrate
 php artisan db:seed --class=AuthDefaultSeeder
 php artisan db:seed

```

Vue
---

[](#vue)

### Configuration Vite components

[](#configuration-vite-components)

```
resolve: {
        alias: {
            '@': '/resources/js',
            '@essen': path.resolve(__dirname, 'vendor/trueandfalse/essential/src/resources/js'),
        },
    },

```

### Configuration app.js components

[](#configuration-appjs-components)

Example inertial

```
resolve: name => {
        let page = null;
        if (name.startsWith('Essen::')) {
            const componentName = name.replace('Essen::', '');
            const pages = import.meta.glob('@essen/**/*.vue', { eager: true });
            page = pages[`/vendor/trueandfalse/essential/src/resources/js/Pages/${componentName}.vue`];
        } else {
            const pages = import.meta.glob('./Pages/**/*.vue', { eager: true })
            page = pages[`./Pages/${name}.vue`];
        }

        if (page.default.layout === undefined) {
            page.default.layout = Layout;
        }

        return page;
    }

```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance66

Regular maintenance activity

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Recently: every ~33 days

Total

79

Last Release

205d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3face26eaffc2fb35382ab5686e44d5b54cdb4c50c42441f824e7b95c0fe590b?d=identicon)[vjchete](/maintainers/vjchete)

---

Top Contributors

[![vchete](https://avatars.githubusercontent.com/u/60408064?v=4)](https://github.com/vchete "vchete (83 commits)")

### Embed Badge

![Health badge](/badges/trueandfalse-essential/health.svg)

```
[![Health](https://phpackages.com/badges/trueandfalse-essential/health.svg)](https://phpackages.com/packages/trueandfalse-essential)
```

PHPackages © 2026

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