p-andrey/tentacles
Da epic tentacles for Eloquent
13,953
1
Larablocks Analysis
p-andrey/tentacles works with Laravel 5 to 10 (latest release 3.0, Apr 7, 2023), all past end of life (the last on Feb 4, 2025): no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5 to 10, past end of life since Feb 4, 2025
- No release in the last 12 months (last: Apr 7, 2023)
- 100 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Apr 7, 2023.
- No releases in the last 12 months.
- First released: Jan 18, 2016.
- Monthly downloads: 100, up 15% from six months ago.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.
| Install | |
|---|---|
composer require p-andrey/tentacles |
|
| Latest Version: | 3.0 |
| PHP: | >=5.5.0 |
| Laravel: | 5 – 10 |
| License: | MIT |
| Last Updated: | Apr 7, 2023 |
| Links: | GitHub · Packagist |
Maintainer: p-andrey
tentacles
Monkey-patching for eloquent models
Composer
"p-andrey/tentacles": "^3.0"
user-model...
<? namespace App\User\Models;
use Illuminate\Database\Eloquent\Model;
use Greabock\Tentacles\EloquentTentacle;
User extends Model {
use EloquentTentacle;
}
ServiceProvider
<?php namespace App\Article\Providers;
use Illuminate\Support\ServiceProvider;
use App\Article\Models\Article;
use App\User\Models\User;
use Illuminate\Database\Eloquent\Model;
class ArticleProvider extends ServiceProvider {
public function register()
{
#..
}
public function boot()
{
User::addExternalMethod('articles', function()
{
return $this->hasMany(Article::class);
});
User::addExternalMethod('getFullnameAttribute', function()
{
return $this->first_name . ' ' . $this->last_name;
});
}
}
Now we can do this:
$user = User::with('articles')->first();
$fullname = $user->fullname;
Related Packages
mindtwo/laravel-auto-create-uuid
Automatically generate UUIDs for Eloquent models on creation and replication.
33,459
1
jenssegers/model
An Laravel eloquent-like model class, for Laravel and other frameworks
4,802,186
393
cerbero/eloquent-inspector
Inspect Laravel Eloquent models to collect properties, relationships and more.
57,468
112
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 3.0 | >=5.5.0 | ^5.5| | MIT | |
| 2.1 | >=5.5.0 | ^5.5| | MIT | |
| 2.0 | >=5.5.0 | ^5.5| | MIT | |
| 1.3 | >=5.5.0 | ^5.5| | MIT | |
| 1.2 | >=5.5.0 | ^5.5| | MIT | |
| 1.1 | >=5.5.0 | ^5.5| | MIT | |
| 1.0 | >=5.5.0 | 5.* | MIT |