Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8b992c

Browse files
committed
Remove reference to getLayout() from ControllerDispatcher.
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 2b62187 commit d8b992c

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/Illuminate/Routing/ControllerDispatcher.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ public function dispatch(Route $route, Request $request, $controller, $method)
6161
$response = $this->call($instance, $route, $method);
6262
}
6363

64-
// If no response has been returned thus far and a controller "layout" has been set
65-
// then we will go ahead and set the layout as the response to the method, which
66-
// lets a controller define a single layout and append to it from all methods.
67-
if (is_null($response) && ! is_null($instance->getLayout()))
68-
{
69-
$response = $instance->getLayout();
70-
}
71-
7264
return $response;
7365
}
7466

0 commit comments

Comments
 (0)