Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
3a34a996
Commit
3a34a996
authored
Aug 01, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on default route setup.
parent
c4babe0a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
.gitignore
+1
-0
app/controllers/HomeController.php
+2
-2
app/routing/routes.php
+2
-5
No files found.
.gitignore
View file @
3a34a996
/bootstrap/compiled.php
/app/routing/cache.php
/vendor
composer.phar
composer.lock
...
...
app/controllers/HomeController.php
View file @
3a34a996
...
...
@@ -11,11 +11,11 @@ class HomeController extends BaseController {
| based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route:
|
| Route::get('/', 'HomeController@
showWelcome
');
| Route::get('/', 'HomeController@
index
');
|
*/
public
function
showWelcome
()
public
function
index
()
{
return
View
::
make
(
'hello'
);
}
...
...
app/routing/routes.php
View file @
3a34a996
...
...
@@ -20,11 +20,8 @@ require __DIR__.'/filters.php';
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
|
and give it the Closure
to execute when that URI is requested.
|
then declare the method
to execute when that URI is requested.
|
*/
Route
::
get
(
'/'
,
function
()
{
return
View
::
make
(
'hello'
);
});
Route
::
get
(
'/'
,
'HomeController@index'
);
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