v2 first commit

This commit is contained in:
denisdulici
2019-11-16 10:21:14 +03:00
parent 5b23e9c2c4
commit 6d50fa8442
3075 changed files with 3451681 additions and 65594 deletions

22
app/Traits/Contacts.php Normal file
View File

@ -0,0 +1,22 @@
<?php
namespace App\Traits;
use App\Models\Common\Contact;
trait Contacts
{
public function getCustomerTypes($return = 'array')
{
$types = (string) setting('contact.type.customer', 'customer');
return ($return == 'array') ? explode(',', $types) : $types;
}
public function getVendorTypes($return = 'array')
{
$types = (string) setting('contact.type.vendor', 'vendor');
return ($return == 'array') ? explode(',', $types) : $types;
}
}