-
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.
Updating the package for Laravel 5.4
- Loading branch information
1 parent
5707880
commit 77d85c3
Showing
13 changed files
with
79 additions
and
41 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/build/ | ||
/node_modules/ | ||
/vendor/ | ||
/composer.lock | ||
/composer.phar |
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
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
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,17 @@ | ||
<?php namespace Arcanesoft\Foundation\Contracts; | ||
|
||
/** | ||
* Interface Foundation | ||
* | ||
* @package Arcanesoft\Foundation\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Foundation | ||
{ | ||
/** | ||
* Get the package version. | ||
* | ||
* @return string | ||
*/ | ||
public function version(); | ||
} |
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 |
---|---|---|
@@ -1,18 +1,46 @@ | ||
<?php namespace Arcanesoft\Foundation; | ||
|
||
use Arcanesoft\Foundation\Contracts\Foundation as FoundationContract; | ||
use Illuminate\Contracts\Foundation\Application; | ||
|
||
/** | ||
* Class Foundation | ||
* | ||
* @package Arcanesoft\Foundation | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class Foundation | ||
class Foundation implements FoundationContract | ||
{ | ||
/* ------------------------------------------------------------------------------------------------ | ||
| Constants | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
const VERSION = '1.2.0'; | ||
const VERSION = '1.5.1'; | ||
|
||
/* ------------------------------------------------------------------------------------------------ | ||
| Properties | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
/** | ||
* The application instance. | ||
* | ||
* @var \Illuminate\Contracts\Foundation\Application | ||
*/ | ||
protected $app; | ||
|
||
/* ------------------------------------------------------------------------------------------------ | ||
| Constructor | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
/** | ||
* Foundation constructor. | ||
* | ||
* @param \Illuminate\Contracts\Foundation\Application $app | ||
*/ | ||
public function __construct(Application $app) | ||
{ | ||
$this->app = $app; | ||
} | ||
|
||
/* ------------------------------------------------------------------------------------------------ | ||
| Getters & Setters | ||
|
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 |
---|---|---|
@@ -1,26 +1,23 @@ | ||
<?php namespace Arcanesoft\Foundation\Http\Routes\Admin; | ||
|
||
use Arcanedev\Support\Bases\RouteRegister; | ||
use Illuminate\Contracts\Routing\Registrar; | ||
use Arcanedev\Support\Routing\RouteRegistrar; | ||
|
||
/** | ||
* Class DashboardRoute | ||
* | ||
* @package Arcanesoft\Foundation\Http\Routes\Admin | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class DashboardRoute extends RouteRegister | ||
class DashboardRoute extends RouteRegistrar | ||
{ | ||
/* ------------------------------------------------------------------------------------------------ | ||
| Main Functions | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
/** | ||
* Map routes. | ||
* | ||
* @param \Illuminate\Contracts\Routing\Registrar $router | ||
*/ | ||
public function map(Registrar $router) | ||
public function map() | ||
{ | ||
$this->get('/', 'DashboardController@index') | ||
->name('home'); // admin::foundation.home | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php namespace Arcanesoft\Foundation\Http\Routes\Admin; | ||
|
||
use Arcanedev\Support\Bases\RouteRegister; | ||
use Arcanedev\Support\Routing\RouteRegistrar; | ||
use Illuminate\Contracts\Routing\Registrar; | ||
|
||
/** | ||
|
@@ -9,20 +9,18 @@ | |
* @package Arcanesoft\Foundation\Http\Routes\Admin | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class SettingsRoutes extends RouteRegister | ||
class SettingsRoutes extends RouteRegistrar | ||
{ | ||
/* ------------------------------------------------------------------------------------------------ | ||
| Main Functions | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
/** | ||
* Map routes. | ||
* | ||
* @param \Illuminate\Contracts\Routing\Registrar $router | ||
*/ | ||
public function map(Registrar $router) | ||
public function map() | ||
{ | ||
$this->group(['prefix' => 'settings', 'as' => 'settings.'], function () { | ||
$this->prefix('settings')->name('settings.')->group(function () { | ||
$this->get('/', 'SettingsController@index') | ||
->name('index'); // admin::foundation.settings.index | ||
}); | ||
|
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 |
---|---|---|
@@ -1,28 +1,25 @@ | ||
<?php namespace Arcanesoft\Foundation\Http\Routes\Admin; | ||
|
||
use Arcanedev\Support\Bases\RouteRegister; | ||
use Illuminate\Contracts\Routing\Registrar; | ||
use Arcanedev\Support\Routing\RouteRegistrar; | ||
|
||
/** | ||
* Class SystemRoutes | ||
* | ||
* @package Arcanesoft\Foundation\Http\Routes\Admin | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class SystemRoutes extends RouteRegister | ||
class SystemRoutes extends RouteRegistrar | ||
{ | ||
/* ------------------------------------------------------------------------------------------------ | ||
| Main Functions | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
/** | ||
* Map routes. | ||
* | ||
* @param \Illuminate\Contracts\Routing\Registrar $router | ||
*/ | ||
public function map(Registrar $router) | ||
public function map() | ||
{ | ||
$this->group(['prefix' => 'system', 'as' => 'system.', 'namespace' => 'System'], function () { | ||
$this->prefix('system')->name('system.')->namespace('System')->group(function () { | ||
$this->registerSystemInformationRoutes(); | ||
$this->registerLogViewerRoutes(); | ||
$this->registerRouteViewerRoutes(); | ||
|
@@ -38,9 +35,9 @@ public function map(Registrar $router) | |
*/ | ||
private function registerSystemInformationRoutes() | ||
{ | ||
$this->group(['prefix' => 'information', 'as' => 'information.'], function () { | ||
$this->prefix('information')->name('information.')->group(function () { | ||
$this->get('/', 'InformationController@index') | ||
->name('index'); | ||
->name('index'); // admin::foundation.system.information.index | ||
}); | ||
} | ||
|
||
|
@@ -49,15 +46,15 @@ private function registerSystemInformationRoutes() | |
*/ | ||
private function registerLogViewerRoutes() | ||
{ | ||
$this->group(['prefix' => 'log-viewer', 'as' => 'log-viewer.'], function () { | ||
$this->prefix('log-viewer')->name('log-viewer.')->group(function () { | ||
$this->get('/', 'LogViewerController@index') | ||
->name('index'); // foundation::system.log-viewer.index | ||
->name('index'); // admin::foundation.system.log-viewer.index | ||
|
||
$this->group(['prefix' => 'logs', 'as' => 'logs.'], function() { | ||
$this->prefix('logs')->name('logs.')->group(function() { | ||
$this->get('/', 'LogViewerController@listLogs') | ||
->name('list'); // foundation::system.log-viewer.logs.list | ||
|
||
$this->group(['prefix' => '{date}'], function() { | ||
$this->prefix('{date}')->group(function() { | ||
$this->get('/', 'LogViewerController@show') | ||
->name('show'); // foundation::system.log-viewer.logs.show | ||
|
||
|
@@ -79,9 +76,9 @@ private function registerLogViewerRoutes() | |
*/ | ||
private function registerRouteViewerRoutes() | ||
{ | ||
$this->group(['prefix' => 'routes', 'as' => 'routes.'], function () { | ||
$this->prefix('routes')->name('routes.')->group(function () { | ||
$this->get('/', 'RoutesController@index') | ||
->name('index'); | ||
->name('index'); // foundation::system.routes.index | ||
}); | ||
} | ||
} |
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