vendor/laravel/framework/src/Illuminate/Http/Request.php
/**
     * Get all of the segments for the request path.
     *
     * @return array
     */
Get all of the segments for the request path.
@return array
Get all of the segments for the request path . @return array
public function segments()
    {
        $segments = explode('/', $this->decodedPath());
        return array_values(array_filter($segments, function ($v) {
            return $v != '';
        }));
    }
public function segments ( ) { $ segments = explode ( '/' , $ this -> decodedPath ( ) ) ; return array_values ( array_filter ( $ segments , function ( $ v ) { return $ v != '' ; } ) ) ; }
Get all of the segments for the request path.
Get all of the segments for the request path .