Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
49901bab
Commit
49901bab
authored
Nov 16, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaking a comment.
parent
f0d3589b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
url.php
laravel/url.php
+4
-4
No files found.
laravel/url.php
View file @
49901bab
...
...
@@ -98,8 +98,8 @@ class URL {
{
$uris
=
explode
(
', '
,
key
(
$route
));
// Grab the first URI assigned to the route
, removing the request URI
//
and leading slash from the destination
defined on the route.
// Grab the first URI assigned to the route
and remove the URI and
//
leading slash from the destination that's
defined on the route.
$uri
=
substr
(
$uris
[
0
],
strpos
(
$uris
[
0
],
'/'
));
// Spin through each route parameter and replace the route wildcard
...
...
@@ -110,8 +110,8 @@ class URL {
}
// Replace all remaining optional segments with spaces. Since the
// segments are
, obviously, optional, some of them may not have
//
been assigned
values from the parameter array.
// segments are
optional, some of them may not have been assigned
// values from the parameter array.
return
static
::
to
(
str_replace
(
array
(
'/(:any?)'
,
'/(:num?)'
),
''
,
$uri
),
$https
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment