processton/setup


README

Installation

  1. Make sure you have PHP 8.2 or higher installed.
  2. Install Composer if you haven't already:
    https://getcomposer.org/download/
  3. Run the following command in your project directory to install dependencies:
    composer install processton/setup
  4. Update your users model to sync users with contacts
    use Processton\Contact\Models\Contact;
    use Processton\AccessControll\Traits\HasAbility;
    use Processton\Locale\Traits\HasAddress;
    use Processton\Locale\Traits\HasCountry;
    use Processton\Contact\Traits\HasContact;
    
    use HasCountry, HasAddress, HasAbility, HasContact;
    
    protected static function booted()
    {
       static::created(function ($model) {
          Contact::registerUser($model);
       });
    }
  5. Carefully place your middlewares In routes
    use Processton\Org\Middleware\OrgMustBeInstalled;
    use Processton\Org\Middleware\OrgMustHaveBasicProfile;
    use Processton\Org\Middleware\OrgMustHaveFinancialProfile;
    use Processton\Contact\Middleware\UserMustHaveContact;
    use Processton\Company\Middleware\UserMustHaveCompany;
  6. Publish config and assets.
  7. Its not done yet you would need to follow guidelines to integrate this application.

Documentation

Getting Started

Additional Resources