forked from raylight75/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a914be
commit a97595a
Showing
36 changed files
with
2,531 additions
and
2,820 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use App\Models\Brands; | ||
use App\Models\Product; | ||
use Request; | ||
use Auth, View; | ||
use DB; | ||
|
||
class BackendController extends Controller | ||
{ | ||
|
||
|
||
/** | ||
* Ecommerce-CMS | ||
* | ||
* Copyright (C) 2014 - 2015 Tihomir Blazhev. | ||
* | ||
* LICENSE | ||
* | ||
* Ecommerce-cms is released with dual licensing, using the GPL v3 (license-gpl3.txt) and the MIT license (license-mit.txt). | ||
* You don't have to do anything special to choose one license or the other and you don't have to notify anyone which license you are using. | ||
* Please see the corresponding license file for details of these licenses. | ||
* You are free to use, modify and distribute this software, but all copyright information must remain. | ||
* | ||
* @package ecommerce-cms | ||
* @copyright Copyright (c) 2014 through 2015, Tihomir Blazhev | ||
* @license http://opensource.org/licenses/MIT MIT License | ||
* @version 1.0.0 | ||
* @author Tihomir Blazhev <raylight75@gmail.com> | ||
*/ | ||
|
||
/** | ||
* | ||
* Backend Class for Admin Panel | ||
* | ||
* @package ecommerce-cms | ||
* @category Base Class | ||
* @author Tihomir Blazhev <raylight75@gmail.com> | ||
* @link https://raylight75@bitbucket.org/raylight75/ecommerce-cms.git | ||
*/ | ||
|
||
/** | ||
* Create a new controller instance. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct() | ||
{ | ||
$data = Product::prepareGlobalData(); | ||
View::share($data); | ||
} | ||
|
||
/** | ||
* Show the home page to the user. | ||
* | ||
* @return Response | ||
*/ | ||
|
||
public function index() | ||
{ | ||
return view('backend/content'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.