PHPackages                             daltcore/laravel-share-fix - 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. daltcore/laravel-share-fix

AbandonedArchivedLibrary

daltcore/laravel-share-fix
==========================

Get back the share method in Laravel 5.4

v1.0.0(9y ago)01.2kMITPHP

Since Mar 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/DALTCORE/laravel-share-fix)[ Packagist](https://packagist.org/packages/daltcore/laravel-share-fix)[ RSS](/packages/daltcore-laravel-share-fix/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel 5.4 package share fix
=============================

[](#laravel-54-package-share-fix)

Laravel 5.4 compatible

Will give back the functionality thats taken out in 5.4:

```
share Method Removed

The share method has been removed from the container. This was a legacy method that has not been documented in several years. If you are using this method, you should begin using the  singleton method instead:

$container->singleton('foo', function () {
    return 'foo';
});

```

```
composer require daltcore/laravel-share-fix dev-master

```

Change in your `bootstrap/app.php`

```
$app = new Illuminate\Foundation\Application(
    realpath(__DIR__ . '/../')
);
```

to

```
$app = new DALTCORE\ShareFix\Application(
    realpath(__DIR__ . '/../')
);
```

Now you can use `$this->app->share` again.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3343d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1906631?v=4)[Monn](/maintainers/RamonSmit)[@RamonSmit](https://github.com/RamonSmit)

---

Top Contributors

[![RamonSmit](https://avatars.githubusercontent.com/u/1906631?v=4)](https://github.com/RamonSmit "RamonSmit (3 commits)")

---

Tags

bugfixlaravel-5-package

### Embed Badge

![Health badge](/badges/daltcore-laravel-share-fix/health.svg)

```
[![Health](https://phpackages.com/badges/daltcore-laravel-share-fix/health.svg)](https://phpackages.com/packages/daltcore-laravel-share-fix)
```

PHPackages © 2026

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