src/Illuminate/Foundation/Console/ControllerMakeCommand.php
protected function buildRequestReplacements()
    {
        $name = $this->getNameInput();
        $rootNamespace = trim(
                $this->laravel->getNamespace() . 'Http\Requests' . '\\' . $this->getNamespace($name),
                '\\'
            );
        $storeRequest = $rootNamespace . '\\' . str_replace('Controller', '', class_basename($name)) . 'StoreRequest';
        $updateRequest = $rootNamespace . '\\' . str_replace('Controller', '', class_basename($name)) . 'UpdateRequest';

        if (! class_exists($storeRequest)) {
            if ($this->confirm("A {$storeRequest} request does not exist. Do you want to generate it?", true)) {
                $this->call('make:request', ['name' => $storeRequest]);
            }
        }

        if (! class_exists($updateRequest)) {
            if ($this->confirm("A {$updateRequest} request does not exist. Do you want to generate it?", true)) {
                $this->call('make:request', ['name' => $updateRequest]);
            }
        }

        return [
            'DummyFullStoreRequestClass' => $storeRequest,
            'DummyStoreRequestClass' => class_basename($storeRequest),
            'DummyFullUpdateRequestClass' => $updateRequest,
            'DummyUpdateRequestClass' => class_basename($updateRequest),
        ];
    }
protected function buildRequestReplacements()
    {
        $name = $this->getNameInput();
        $rootNamespace = trim(
                $this->laravel->getNamespace() . 'Http\Requests' . '\\' . $this->getNamespace($name),
                '\\'
            );
        $storeRequest = $rootNamespace . '\\' . str_replace('Controller', '', class_basename($name)) . 'StoreRequest';
        $updateRequest = $rootNamespace . '\\' . str_replace('Controller', '', class_basename($name)) . 'UpdateRequest';

        if (! class_exists($storeRequest)) {
            if ($this->confirm("A {$storeRequest} request does not exist. Do you want to generate it?", true)) {
                $this->call('make:request', ['name' => $storeRequest]);
            }
        }

        if (! class_exists($updateRequest)) {
            if ($this->confirm("A {$updateRequest} request does not exist. Do you want to generate it?", true)) {
                $this->call('make:request', ['name' => $updateRequest]);
            }
        }

        return [
            'DummyFullStoreRequestClass' => $storeRequest,
            'DummyStoreRequestClass' => class_basename($storeRequest),
            'DummyFullUpdateRequestClass' => $updateRequest,
            'DummyUpdateRequestClass' => class_basename($updateRequest),
        ];
    }
protected function buildRequestReplacements ( ) { $ name = $ this -> getNameInput ( ) ; $ rootNamespace = trim ( $ this -> laravel -> getNamespace ( ) . 'Http\Requests' . '\\' . $ this -> getNamespace ( $ name ) , '\\' ) ; $ storeRequest = $ rootNamespace . '\\' . str_replace ( 'Controller' , '' , class_basename ( $ name ) ) . 'StoreRequest' ; $ updateRequest = $ rootNamespace . '\\' . str_replace ( 'Controller' , '' , class_basename ( $ name ) ) . 'UpdateRequest' ; if ( ! class_exists ( $ storeRequest ) ) { if ( $ this -> confirm ( "A {$storeRequest} request does not exist. Do you want to generate it?" , true ) ) { $ this -> call ( 'make:request' , [ 'name' => $ storeRequest ] ) ; } } if ( ! class_exists ( $ updateRequest ) ) { if ( $ this -> confirm ( "A {$updateRequest} request does not exist. Do you want to generate it?" , true ) ) { $ this -> call ( 'make:request' , [ 'name' => $ updateRequest ] ) ; } } return [ 'DummyFullStoreRequestClass' => $ storeRequest , 'DummyStoreRequestClass' => class_basename ( $ storeRequest ) , 'DummyFullUpdateRequestClass' => $ updateRequest , 'DummyUpdateRequestClass' => class_basename ( $ updateRequest ) , ] ; }
Build the request replacement values.

@param  array  $replace
@return array
Build the request replacement values .