Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
T
test-webshop
Project
Project
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Artem
test-webshop
Commits
64482d8b
Commit
64482d8b
authored
May 14, 2020
by
Artem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deleted page /home
parent
2d49f6f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
34 deletions
+3
-34
HomeController.php
app/Http/Controllers/HomeController.php
+0
-28
RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
+1
-1
web.php
routes/web.php
+2
-5
No files found.
app/Http/Controllers/HomeController.php
deleted
100644 → 0
View file @
2d49f6f5
<?php
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
class
HomeController
extends
Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public
function
__construct
()
{
$this
->
middleware
(
'auth'
);
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public
function
index
()
{
return
view
(
'home'
);
}
}
app/Providers/RouteServiceProvider.php
View file @
64482d8b
...
...
@@ -21,7 +21,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @var string
*/
public
const
HOME
=
'/
home
'
;
public
const
HOME
=
'/'
;
/**
* Define your route model bindings, pattern filters, etc.
...
...
routes/web.php
View file @
64482d8b
...
...
@@ -13,6 +13,8 @@ use Illuminate\Support\Facades\Route;
|
*/
Auth
::
routes
();
Route
::
get
(
'/'
,
'ProductController@index'
)
->
name
(
'homepage'
);
Route
::
prefix
(
'product'
)
->
group
(
function
()
{
...
...
@@ -24,11 +26,6 @@ Route::prefix('product')->group(function() {
// Route::delete('/{product}', 'ProductController@destroy');
});
Auth
::
routes
();
Route
::
get
(
'/home'
,
'HomeController@index'
)
->
name
(
'home'
);
Route
::
prefix
(
'cart'
)
->
group
(
function
()
{
Route
::
get
(
'/'
,
'CartController@index'
)
->
name
(
'cart.index'
);
Route
::
post
(
'/add/{product}'
,
'CartController@addToCart'
)
->
name
(
'cart.addToCart'
);
...
...
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