Mega work on structure.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
<?php namespace App\Http\Controllers;
|
||||
|
||||
class HomeController extends Controller {
|
||||
class HomeController extends \Controller {
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -17,7 +17,7 @@ class HomeController extends Controller {
|
||||
|
||||
public function index()
|
||||
{
|
||||
return View::make('hello');
|
||||
return view('hello');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
<?php namespace App\Http\Filters;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Auth, Redirect, Response;
|
||||
|
||||
class AuthFilter {
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
<?php namespace App\Http\Filters;
|
||||
|
||||
use Auth;
|
||||
|
||||
class BasicAuthFilter {
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<?php
|
||||
<?php namespace App\Http\Filters;
|
||||
|
||||
use Session;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Routing\Route;
|
||||
use Illuminate\Session\TokenMismatchException;
|
||||
|
||||
class CsrfFilter {
|
||||
|
||||
@@ -14,7 +16,7 @@ class CsrfFilter {
|
||||
{
|
||||
if (Session::token() != $request->input('_token'))
|
||||
{
|
||||
throw new Illuminate\Session\TokenMismatchException;
|
||||
throw new TokenMismatchException;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
<?php namespace App\Http\Filters;
|
||||
|
||||
use Auth, Redirect;
|
||||
|
||||
class GuestFilter {
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
<?php namespace App\Http\Filters;
|
||||
|
||||
use App, Response;
|
||||
|
||||
class MaintenanceFilter {
|
||||
|
||||
|
||||
14
app/Http/routes.php
Normal file
14
app/Http/routes.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register all of the routes for an application.
|
||||
| It's a breeze. Simply tell Laravel the URIs it should respond to
|
||||
| and give it the Closure to execute when that URI is requested.
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', 'HomeController@index');
|
||||
Reference in New Issue
Block a user