-
-
Notifications
You must be signed in to change notification settings - Fork 998
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added admin routing and admin php info mvc's
- Loading branch information
1 parent
4c3d441
commit 65ab50a
Showing
15 changed files
with
199 additions
and
33 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
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,43 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
use Illuminate\Support\Facades\Route; | ||
use App\Http\Requests; | ||
use File; | ||
|
||
class AdminDetailsController extends Controller | ||
{ | ||
|
||
/** | ||
* Create a new controller instance. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->middleware('auth'); | ||
} | ||
|
||
/** | ||
* Display a listing of the resource. | ||
* | ||
* @return \Illuminate\Http\Response | ||
*/ | ||
public function listRoutes() | ||
{ | ||
$routes = Route::getRoutes(); | ||
$data = [ | ||
'routes' => $routes | ||
]; | ||
|
||
return view('pages.admin.route-details', $data); | ||
} | ||
|
||
public function listPHPInfo() | ||
{ | ||
return view('pages.admin.php-details'); | ||
} | ||
|
||
} |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"/js/app.js": "/js/app.1136fcfd9dc71ebd00e6.js", | ||
"/css/app.css": "/css/app.e3d440c5f94fc35318a5.css" | ||
"/css/app.css": "/css/app.1e901db56615a997fdf1.css" | ||
} |
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,14 @@ | ||
.badge { | ||
&.badge-primary { | ||
background-color: $brand-primary; | ||
} | ||
} | ||
|
||
// A Good time for an @extend | ||
.panel-default > .panel-heading { | ||
.badge { | ||
&.badge-primary { | ||
background-color: $brand-primary; | ||
} | ||
} | ||
} |
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,23 @@ | ||
.logs-container { | ||
.stack { | ||
font-size: 0.85em; | ||
} | ||
.date { | ||
min-width: 75px; | ||
} | ||
.text { | ||
word-break: break-all; | ||
} | ||
a.llv-active { | ||
z-index: 2; | ||
background-color: $brand-primary; | ||
border-color: $brand-primary; | ||
color: $white; | ||
|
||
.badge { | ||
background: $white; | ||
color: $text-color; | ||
margin-top: .2em; | ||
} | ||
} | ||
} |
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,26 @@ | ||
@extends('layouts.app') | ||
|
||
@section('template_title') | ||
PHP Information | ||
@endsection | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
PHP Information | ||
</div> | ||
<div class="panel-body"> | ||
<div class="table-responsive"> | ||
@php | ||
phpinfo(); | ||
@endphp | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |
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,47 @@ | ||
@extends('layouts.app') | ||
|
||
@section('template_title') | ||
Routing Information | ||
@endsection | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
|
||
@include('partials.form-status') | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
Routing Information | ||
<span class="badge badge-primary pull-right">{{ count($routes) }} routes</span> | ||
</div> | ||
<div class="panel-body"> | ||
<div class="table-responsive"> | ||
<table class="table table-striped table-condensed data-table"> | ||
<thead> | ||
<tr class="success"> | ||
<th>URI</th> | ||
<th>Name</th> | ||
<th>Type</th> | ||
<th>Method</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach ($routes as $route) | ||
<tr> | ||
<td>{{$route->uri}}</td> | ||
<td>{{$route->getName()}}</td> | ||
<td>{{$route->getPrefix()}}</td> | ||
<td>{{$route->getActionMethod()}}</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |
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