app/Providers/AppServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        Collection::macro('setAppends', function ($attributes) {
          return $this->map(function ($item) use ($attributes) {
            return $item->setAppends($attributes);
          });
        });
    }
public function boot ( ) { Collection :: macro ( 'setAppends' , function ( $ attributes ) { return $ this -> map ( function ( $ item ) use ( $ attributes ) { return $ item -> setAppends ( $ attributes ) ; } ) ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .