laravel-enso / contacts
Contacts dependency for Larave Enso
Installs: 10 719
Dependents: 2
Suggesters: 0
Security: 0
Stars: 10
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=7.1.0
- laravel-enso/activitylog: 1.1.*
- laravel-enso/core: 3.2.*
- laravel-enso/formbuilder: 2.10.*
- laravel-enso/helpers: 1.9.*
- laravel-enso/structuremanager: 2.4.*
- laravel-enso/vuecomponents: 2.5.*
- laravel-enso/vuedatatable: 1.7.*
- dev-master
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.32
- 2.2.31
- 2.2.30
- 2.2.29
- 2.2.28
- 2.2.22
- 2.2.21
- 2.2.20
- 2.2.19
- 2.2.18
- 2.2.17
- 2.2.16
- 2.2.15
- 2.2.14
- 2.2.13
- 2.2.12
- 2.2.11
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.53
- 2.1.52
- 2.1.51
- 2.1.50
- 2.1.49
- 2.1.48
- 2.1.47
- 2.1.46
- 2.1.45
- 2.1.44
- 2.1.43
- 2.1.42
- 2.1.41
- 2.1.40
- 2.1.39
- 2.1.38
- 2.1.37
- 2.1.36
- 2.1.35
- 2.1.34
- 2.1.33
- 2.1.32
- 2.1.31
- 2.1.30
- 2.1.29
- 2.1.28
- 2.1.27
- 2.1.26
- 2.1.25
- 2.1.24
- 2.1.23
- 2.1.22
- 2.1.21
- 2.1.20
- 2.1.19
- 2.1.18
- 2.1.17
- 2.1.16
- 2.1.15
- 2.1.14
- 2.1.13
- 2.1.12
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.12
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-adminlte
This package is auto-updated.
Last update: 2020-01-16 13:10:56 UTC
README
Contacts dependency for Laravel Enso.
Features
- allows the management of contact persons, attached to other entities, such as owners
- uses a polymorphic relationship for flexibility when attaching
- contacts can be disabled while still keeping them, for reference
- comes with a
Contacts.vue
VueJS component meant to be included anywhere, and an index page to list all contacts - uses the VueComponents package in order to load its VueJS dependencies
Installation steps
The component is already included in the Enso install and should not require any additional installation steps.
Use
-
Define the
'model_alias' => 'App\Model'
mapping in theconfig/enso/contacts.php
file -
Add the
Contactable
trait in the Model to which you need to add contacts You can then use the$model->contacts
relationship -
Use the VueJS component in your pages/components
<contacts type="model_alias" id="entityId" :open="true" title="My Custom Title" > </contacts>
Options
The Contacts.vue
component can be used anywhere, can be integrated into any other component or page, and takes the following parameters:
id
- the id of the entity | requiredtype
- string, the entity type, set in the configuration file | requiredopen
- boolean, flag which, if true, makes the component start in the open state | defaultfalse
| (optional)title
- string, title for the component | default 'Contacts' | (optional)
Publishes
php artisan vendor:publish --tag=contacts-config
- the configuration filephp artisan vendor:publish --tag=contacts-assets
- the VueJS componentsphp artisan vendor:publish --tag=enso-assets
- a common alias for when wanting to update the VueJS component, once a newer version is released, can be used with the--force
flagphp artisan vendor:publish --tag=enso-config
- a common alias for when wanting to update the config, once a newer version is released, can be used with the--force
flag
Notes
The Laravel Enso package comes with this package included.
Depends on:
- Datatable for showing the list of contacts
- Structure manager for the migrations
- TrackWho for keeping track of the users making the changes to each contact
- VueComponents for the accompanying VueJS components
- Helpers for the IsActive trait
Contributions
are welcome. Pull requests are great, but issues are good too.
License
This package is released under the MIT license.