- How do I install laravel-liberu/companies in a Laravel app?
- Install it with Composer using composer require laravel-liberu/companies. Because it is part of the Liberu ecosystem, install it alongside the required Liberu core packages and follow the repository instructions for service provider registration, publishing, and migrations. Run the package migrations and seed any permissions or reference data the package provides before using the CRUD features.
- What Laravel versions does laravel-liberu/companies support?
- The repository composer.json is the source of truth for supported Laravel and PHP versions. Check its require constraints and the releases or README for any stated Laravel compatibility. Do not assume support for the newest Laravel release until the package constraints and tests confirm it.
- What database tables and models does laravel-liberu/companies add?
- The package provides models and migrations for company legal entities, addresses, bank accounts, and related records used in company management. Expect the schema to support CRUD operations and relationships between companies and their addresses and bank accounts. Review the migrations in the repository for the exact table names and fields before integrating with existing data.
- How does laravel-liberu/companies handle permissions and authorization?
- The package includes permissions integration for company management actions, typically through the Liberu ecosystem authorization approach. Review the package seeders, permission names, and any policies to assign access for company, address, and bank account CRUD. Verify the rules against your application roles before deploying.
- Can I use laravel-liberu/companies for multi-company or multi-tenant Laravel applications?
- It is intended for multi-company Laravel applications in the Liberu ecosystem, providing company records with related addresses and bank accounts. The package supplies company management primitives, but full tenant isolation depends on your application scoping, authorization, and database design. Plan how users select and access companies and enforce that consistently.
- How do I customize the company CRUD forms and views?
- The package provides reusable form components for company, address, and bank account CRUD. Customize by overriding views or components in your application or by extending the package models where Liberu conventions allow. Keep customizations in your app layer where possible so package updates remain easier to apply.
- Does laravel-liberu/companies include search for companies, addresses, and bank accounts?
- Search is part of the package scope for company management and related records. Confirm the exact search endpoints, filters, and UI components in the repository and connect them to your application screens. Test search behavior with realistic company, address, and bank account data.
- How should I test company management features with laravel-liberu/companies?
- Use Laravel testing tools with a test database, run the package migrations, and cover CRUD plus permission scenarios for companies, addresses, and bank accounts. Use package factories or seeders if provided, or create your own fixtures. Check the repository tests for expected behavior and edge cases.
- What should I check before using laravel-liberu/companies in production?
- Run migrations, configure and seed permissions, and verify authorization rules for all company-related data. Review indexes, validation, and data isolation if you operate multiple companies. Test upgrades in staging and back up company, address, and bank account data before deploying.
- What are alternatives to laravel-liberu/companies for managing companies in Laravel?
- Alternatives include building your own company, address, and bank account models, using a CRM or accounting package, or adopting another Laravel multi-tenant package. Choose laravel-liberu/companies when you want Liberu ecosystem integration and reusable company CRUD components. A smaller custom module may be better if you only need a few fields and simple relationships.