app/Providers/AppServiceProvider.php
/**
     * Boot the authentication services for the application.
     *
     * @return void
     */
Boot the authentication services for the application.
@return void
Boot the authentication services for the application . @return void
public function boot()
    {
        AccountingAccount::observe(UuidObserver::class);
        AccountingEntry::observe(UuidObserver::class);
        AccountingReportConfiguration::observe(UuidObserver::class);
        Approvals::observe(UuidObserver::class);
        ApprovalAuthorizers::observe(UuidObserver::class);
        ApprovalRequests::observe(UuidObserver::class);
        Advert::observe(UuidObserver::class);
        Application::observe(UuidObserver::class);
        ApplicationCategory::observe(UuidAndSlugObserver::class);
        ApplicationInstall::observe(UuidObserver::class);
        BankAccount::observe(UuidObserver::class);
        BlogCategory::observe(UuidAndSlugObserver::class);
        BlogMedia::observe(BlogMediaObserver::class);
        BlogPost::observe(UuidAndSlugObserver::class);
        Company::observe(UuidObserver::class);
        ContactField::observe(UuidObserver::class);
        Contact::observe(UuidObserver::class);
        Country::observe(UuidObserver::class);
        Coupon::observe(UuidObserver::class);
        CouponUsage::observe(UuidObserver::class);
        Customer::observe(UuidObserver::class);
        CustomerNote::observe(UuidObserver::class);
        Deal::observe(UuidObserver::class);
        DealStage::observe(UuidObserver::class);
        Department::observe(UuidObserver::class);
        Domain::observe(UuidObserver::class);
        DomainIssuance::observe(UuidObserver::class);
        Employee::observe(UuidObserver::class);
        Group::observe(UuidObserver::class);
        Integration::observe(UuidObserver::class);
        Invite::observe(UuidObserver::class);
        Location::observe(UuidObserver::class);
        Partner::observe(PartnerObserver::class);
        Product::observe(UuidObserver::class);
        ProductCategory::observe(UuidObserver::class);
        ProductImage::observe(UuidObserver::class);
        ProductPrice::observe(UuidObserver::class);
        ProfessionalCategory::observe(UuidObserver::class);
        ProfessionalCredential::observe(UuidObserver::class);
        ProfessionalExperience::observe(UuidObserver::class);
        ProfessionalService::observe(UuidObserver::class);
        ServiceRequest::observe(UuidObserver::class);
        Service::observe(UuidObserver::class);
        State::observe(UuidObserver::class);
        Order::observe(UuidObserver::class);
        PaymentTransaction::observe(UuidObserver::class);
        Permission::observe(UuidObserver::class);
        Plan::observe(UuidObserver::class);
        Role::observe(UuidObserver::class);
        \Spatie\Permission\Models\Role::observe(UuidObserver::class);
        Team::observe(UuidObserver::class);
        User::observe(UuidObserver::class);
        UserAccessGrant::observe(UuidObserver::class);
        VendorService::observe(UuidObserver::class);
        TaxAuthority::observe(UuidObserver::class);
        TaxElements::observe(UuidObserver::class);
        TaxRuns::observe(UuidObserver::class);
        PayrollAuthorities::observe(UuidObserver::class);
        PayrollAllowances::observe(UuidObserver::class);
        PayrollPaygroup::observe(UuidObserver::class);
        PayrollTransactions::observe(UuidObserver::class);
        PayrollRun::observe(UuidObserver::class);
        LeaveTypes::observe(UuidObserver::class);
        LeaveGroups::observe(UuidObserver::class);
        LeaveRequests::observe(UuidObserver::class);
        AccountingAccount::observe(AccountCodeObserver::class);
        LumenPassport::routes($this->app);
        LumenPassport::allowMultipleTokens();
        $this->app['path.config'] = base_path('config');
    }
public function boot ( ) { AccountingAccount :: observe ( UuidObserver :: class ) ; AccountingEntry :: observe ( UuidObserver :: class ) ; AccountingReportConfiguration :: observe ( UuidObserver :: class ) ; Approvals :: observe ( UuidObserver :: class ) ; ApprovalAuthorizers :: observe ( UuidObserver :: class ) ; ApprovalRequests :: observe ( UuidObserver :: class ) ; Advert :: observe ( UuidObserver :: class ) ; Application :: observe ( UuidObserver :: class ) ; ApplicationCategory :: observe ( UuidAndSlugObserver :: class ) ; ApplicationInstall :: observe ( UuidObserver :: class ) ; BankAccount :: observe ( UuidObserver :: class ) ; BlogCategory :: observe ( UuidAndSlugObserver :: class ) ; BlogMedia :: observe ( BlogMediaObserver :: class ) ; BlogPost :: observe ( UuidAndSlugObserver :: class ) ; Company :: observe ( UuidObserver :: class ) ; ContactField :: observe ( UuidObserver :: class ) ; Contact :: observe ( UuidObserver :: class ) ; Country :: observe ( UuidObserver :: class ) ; Coupon :: observe ( UuidObserver :: class ) ; CouponUsage :: observe ( UuidObserver :: class ) ; Customer :: observe ( UuidObserver :: class ) ; CustomerNote :: observe ( UuidObserver :: class ) ; Deal :: observe ( UuidObserver :: class ) ; DealStage :: observe ( UuidObserver :: class ) ; Department :: observe ( UuidObserver :: class ) ; Domain :: observe ( UuidObserver :: class ) ; DomainIssuance :: observe ( UuidObserver :: class ) ; Employee :: observe ( UuidObserver :: class ) ; Group :: observe ( UuidObserver :: class ) ; Integration :: observe ( UuidObserver :: class ) ; Invite :: observe ( UuidObserver :: class ) ; Location :: observe ( UuidObserver :: class ) ; Partner :: observe ( PartnerObserver :: class ) ; Product :: observe ( UuidObserver :: class ) ; ProductCategory :: observe ( UuidObserver :: class ) ; ProductImage :: observe ( UuidObserver :: class ) ; ProductPrice :: observe ( UuidObserver :: class ) ; ProfessionalCategory :: observe ( UuidObserver :: class ) ; ProfessionalCredential :: observe ( UuidObserver :: class ) ; ProfessionalExperience :: observe ( UuidObserver :: class ) ; ProfessionalService :: observe ( UuidObserver :: class ) ; ServiceRequest :: observe ( UuidObserver :: class ) ; Service :: observe ( UuidObserver :: class ) ; State :: observe ( UuidObserver :: class ) ; Order :: observe ( UuidObserver :: class ) ; PaymentTransaction :: observe ( UuidObserver :: class ) ; Permission :: observe ( UuidObserver :: class ) ; Plan :: observe ( UuidObserver :: class ) ; Role :: observe ( UuidObserver :: class ) ; \ Spatie \ Permission \ Models \ Role :: observe ( UuidObserver :: class ) ; Team :: observe ( UuidObserver :: class ) ; User :: observe ( UuidObserver :: class ) ; UserAccessGrant :: observe ( UuidObserver :: class ) ; VendorService :: observe ( UuidObserver :: class ) ; TaxAuthority :: observe ( UuidObserver :: class ) ; TaxElements :: observe ( UuidObserver :: class ) ; TaxRuns :: observe ( UuidObserver :: class ) ; PayrollAuthorities :: observe ( UuidObserver :: class ) ; PayrollAllowances :: observe ( UuidObserver :: class ) ; PayrollPaygroup :: observe ( UuidObserver :: class ) ; PayrollTransactions :: observe ( UuidObserver :: class ) ; PayrollRun :: observe ( UuidObserver :: class ) ; LeaveTypes :: observe ( UuidObserver :: class ) ; LeaveGroups :: observe ( UuidObserver :: class ) ; LeaveRequests :: observe ( UuidObserver :: class ) ; AccountingAccount :: observe ( AccountCodeObserver :: class ) ; LumenPassport :: routes ( $ this -> app ) ; LumenPassport :: allowMultipleTokens ( ) ; $ this -> app [ 'path.config' ] = base_path ( 'config' ) ; }
Boot the authentication services for the application.
Boot the authentication services for the application .
# add model observers # register the routes