Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 862 Bytes

File metadata and controls

19 lines (15 loc) · 862 Bytes

Configuration

Publish config:

php artisan vendor:publish --tag=acquaintances-config

Key points (config/acquaintances.php):

  • migrations: default false. When false, package will not auto-load its migrations. The service provider will auto-load if either:
    • 'migrations' is true; or
    • it is null and no published migrations with acquaintances exist in database/migrations.
  • model_namespace: 'App' for app()->version() <= 7; 'App\Models' otherwise.
  • models: class names for internal package models (friendship, interaction_relation, etc.).
  • tables: override table names if needed (friendships, friendship_groups, interactions, verifications, verification_groups).
  • rating: defaults and custom types. Default type is 'general'.
  • friendships_groups and verifications_groups: slug => numeric code mappings.

See also: docs/8.migrations.md