Renaming folders.
This commit is contained in:
23
app/HttpBkp/Controllers/HomeController.php
Normal file
23
app/HttpBkp/Controllers/HomeController.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class HomeController extends Controller {
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Home Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You may wish to use controllers instead of, or in addition to, Closure
|
||||
| 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@index');
|
||||
|
|
||||
*/
|
||||
|
||||
public function index()
|
||||
{
|
||||
return View::make('hello');
|
||||
}
|
||||
|
||||
}
|
||||
28
app/HttpBkp/Filters/AuthFilter.php
Normal file
28
app/HttpBkp/Filters/AuthFilter.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class AuthFilter {
|
||||
|
||||
/**
|
||||
* Run the request filter.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return mixed
|
||||
*/
|
||||
public function filter(Request $request)
|
||||
{
|
||||
if (Auth::guest())
|
||||
{
|
||||
if ($request->ajax())
|
||||
{
|
||||
return Response::make('Unauthorized', 401);
|
||||
}
|
||||
else
|
||||
{
|
||||
return Redirect::guest('login');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
15
app/HttpBkp/Filters/BasicAuthFilter.php
Normal file
15
app/HttpBkp/Filters/BasicAuthFilter.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
class BasicAuthFilter {
|
||||
|
||||
/**
|
||||
* Run the request filter.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function filter()
|
||||
{
|
||||
return Auth::basic();
|
||||
}
|
||||
|
||||
}
|
||||
21
app/HttpBkp/Filters/CsrfFilter.php
Normal file
21
app/HttpBkp/Filters/CsrfFilter.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Routing\Route;
|
||||
|
||||
class CsrfFilter {
|
||||
|
||||
/**
|
||||
* Run the request filter.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function filter(Route $route, Request $request)
|
||||
{
|
||||
if (Session::token() != $request->input('_token'))
|
||||
{
|
||||
throw new Illuminate\Session\TokenMismatchException;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
18
app/HttpBkp/Filters/GuestFilter.php
Normal file
18
app/HttpBkp/Filters/GuestFilter.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
class GuestFilter {
|
||||
|
||||
/**
|
||||
* Run the request filter.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function filter()
|
||||
{
|
||||
if (Auth::check())
|
||||
{
|
||||
return Redirect::to('/');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
18
app/HttpBkp/Filters/MaintenanceFilter.php
Normal file
18
app/HttpBkp/Filters/MaintenanceFilter.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
class MaintenanceFilter {
|
||||
|
||||
/**
|
||||
* Run the request filter.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function filter()
|
||||
{
|
||||
if (App::isDownForMaintenance())
|
||||
{
|
||||
return Response::make('Be right back!');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
0
app/HttpBkp/Requests/.gitkeep
Normal file
0
app/HttpBkp/Requests/.gitkeep
Normal file
14
app/HttpBkp/Views/emails/auth/reminder.blade.php
Normal file
14
app/HttpBkp/Views/emails/auth/reminder.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<h2>Password Reset</h2>
|
||||
|
||||
<div>
|
||||
To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.<br/>
|
||||
This link will expire in {{ Config::get('auth.reminder.expire', 60) }} minutes.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
42
app/HttpBkp/Views/hello.php
Normal file
42
app/HttpBkp/Views/hello.php
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user