src/Routing/Route.php
public function substituteBindings(StoreInterface $store): void
    {
        /** Cache the ID values so that we still have access to them. */
        $this->resourceId = $this->getResourceId() ?: false;
        $this->processId = $this->getProcessId() ?: false;

        /** Bind the domain record. */
        if ($this->resourceId) {
            $this->route->setParameter(
                ResourceRegistrar::PARAM_RESOURCE_ID,
                $store->findOrFail($this->getResourceType(), $this->resourceId)
            );
        }

        /** Bind the async process. */
        if ($this->processId) {
            $this->route->setParameter(
                ResourceRegistrar::PARAM_PROCESS_ID,
                $store->findOrFail($this->getProcessType(), $this->processId)
            );
        }
    }
public function substituteBindings(StoreInterface $store): void
    {
        /** Cache the ID values so that we still have access to them. */
        $this->resourceId = $this->getResourceId() ?: false;
        $this->processId = $this->getProcessId() ?: false;

        /** Bind the domain record. */
        if ($this->resourceId) {
            $this->route->setParameter(
                ResourceRegistrar::PARAM_RESOURCE_ID,
                $store->findOrFail($this->getResourceType(), $this->resourceId)
            );
        }

        /** Bind the async process. */
        if ($this->processId) {
            $this->route->setParameter(
                ResourceRegistrar::PARAM_PROCESS_ID,
                $store->findOrFail($this->getProcessType(), $this->processId)
            );
        }
    }
public function substituteBindings ( StoreInterface $ store ) : void { /** Cache the ID values so that we still have access to them. */ $ this -> resourceId = $ this -> getResourceId ( ) ? : false ; $ this -> processId = $ this -> getProcessId ( ) ? : false ; /** Bind the domain record. */ if ( $ this -> resourceId ) { $ this -> route -> setParameter ( ResourceRegistrar :: PARAM_RESOURCE_ID , $ store -> findOrFail ( $ this -> getResourceType ( ) , $ this -> resourceId ) ) ; } /** Bind the async process. */ if ( $ this -> processId ) { $ this -> route -> setParameter ( ResourceRegistrar :: PARAM_PROCESS_ID , $ store -> findOrFail ( $ this -> getProcessType ( ) , $ this -> processId ) ) ; } }
Substitute the route bindings onto the Laravel route.

@param StoreInterface $store
@return void
@throws ResourceNotFoundException
Substitute the route bindings onto the Laravel route .