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
0a908eff
Commit
0a908eff
authored
Sep 02, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1014 from jasonlewis/feature/root-bundles
Allow bundles to respond to root requests.
parents
8e8ef861
f408fcc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
bundle.php
laravel/bundle.php
+1
-1
router.php
laravel/routing/router.php
+6
-1
No files found.
laravel/bundle.php
View file @
0a908eff
...
...
@@ -191,7 +191,7 @@ class Bundle {
foreach
(
static
::
$bundles
as
$key
=>
$value
)
{
if
(
isset
(
$value
[
'handles'
])
and
starts_with
(
$uri
,
$value
[
'handles'
]
.
'/'
))
if
(
isset
(
$value
[
'handles'
])
and
starts_with
(
$uri
,
$value
[
'handles'
]
.
'/'
)
or
$value
[
'handles'
]
==
'/'
)
{
return
$key
;
}
...
...
laravel/routing/router.php
View file @
0a908eff
...
...
@@ -206,7 +206,12 @@ class Router {
continue
;
}
$uri
=
str_replace
(
'(:bundle)'
,
static
::
$bundle
,
$uri
);
$uri
=
ltrim
(
str_replace
(
'(:bundle)'
,
static
::
$bundle
,
$uri
),
'/'
);
if
(
$uri
==
''
)
{
$uri
=
'/'
;
}
// If the URI begins with a wildcard, we want to add this route to the
// array of "fallback" routes. Fallback routes are always processed
...
...
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