Skip to content

Loom Core 🧵

Loom Core is the foundation of the Starter Kit.
It provides the essential tools, modular architecture, and ready-to-use resources to build scalable and maintainable Laravel applications.


Core provides a modular system where each feature (Blog, Shop, etc.) is a **self-contained module**. Enable or disable modules using Laravel Pennant feature flags in `config/loom.php`. Core manages resources like Users, Roles, and Permissions. Routes are automatically registered, but can be customized or replaced by the developer. Core supports multiple authentication guards. You can define guards per module or resource for fine-grained access control. Loom Core provides artisan commands like `loom:install`, `loom:add`, and `loom:list` to manage modules and features easily. Core integrates notifications, events, and hooks. Modules can trigger notifications or react to application events.
  • Modules are self-contained packages within Loom.
  • Each module can define:
    • Routes
    • Controllers
    • Policies
    • Views
    • Seeders
  • Modules can be added via CLI:
Terminal window
php artisan loom:add blog
  • Disable a module using feature flags:
use Laravel\Pennant\Feature;
Feature::off('blog');

  • You can create custom modules or extend existing ones.
  • All Core resources (User, Role, Permission) are replaceable.
  • Commands and features are fully configurable via config/loom.php.

  • Explore Starter Kit features/guides/starter-kit/
  • Check CLI commands/reference/commands/
  • Learn module management/tutorials/add-blog-module/