zulfajuniadi/laravel-base
A foundational Laravel package that provides reusable base classes and conventions for common application structure, helping reduce boilerplate and keep projects consistent. Useful as a starting point for building and standardizing Laravel apps.
composer show zulfajuniadi/laravel-base --all and read its composer.json require block. It targets Laravel 5.1/5.2 and PHP 5.5/5.6. On a modern app, either pin to an old skeleton or fork — a straight composer require zulfajuniadi/laravel-base will likely fail dependency resolution.composer require zulfajuniadi/laravel-base.config/app.php and add the package's *ServiceProvider (look under vendor/zulfajuniadi/laravel-base/src/) to the providers array. Add any facade aliases to aliases if the README lists them.php artisan vendor:publish. Look for a base.php (or similarly named) config that holds the "sensible defaults."vendor/zulfajuniadi/laravel-base/src/ — it is a small codebase, and its behavior is defined entirely by those abstract class / trait declarations, not by documentation.class Post extends BaseModel inherits any common boot logic (UUIDs, slugs, casts, global scopes). Keep domain-specific logic in your own traits on top of the base class, rather than editing vendor.BaseController ships, use it for the standard index/show/store/update/destroy flow and override only the hooks — validation rules, model resolution, response formatting — instead of duplicating action bodies.TestCase, extend it so database traits and fakes are configured identically across all tests.App\Base\Model and App\Base\Controller that extend the package classes, and extend those everywhere. Swapping the package out later becomes a one-file change.boot* methods that are hard to trace through three levels.config/app.php.$guarded = [] or an empty $fillable for convenience. Audit that before exposing a model to $request->all().boot* methods apply to every extending model and can silently restrict queries (soft deletes, tenancy filters, ordering). If queries behave oddly, check the base model's boot logic first.get_class_methods(SomeBase::class) in tinker, or read the trait directly — the source is short and faster than guessing.vendor/. Publish configuration, copy abstract classes into App\Base\, or fork the repo if you need changes.base.php is a common outcome when the provider is missing or the publish tag is wrong; dd(config('base')) is a quick sanity check.How can I help you explore Laravel packages today?