Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
177d1ebb
Commit
177d1ebb
authored
Aug 20, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mega work on structure.
parent
aae8ef30
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
74 additions
and
37 deletions
+74
-37
InspireCommand.php
app/Console/InspireCommand.php
+1
-1
HomeController.php
app/Http/Controllers/HomeController.php
+3
-3
AuthFilter.php
app/Http/Filters/AuthFilter.php
+2
-1
BasicAuthFilter.php
app/Http/Filters/BasicAuthFilter.php
+3
-1
CsrfFilter.php
app/Http/Filters/CsrfFilter.php
+4
-2
GuestFilter.php
app/Http/Filters/GuestFilter.php
+3
-1
MaintenanceFilter.php
app/Http/Filters/MaintenanceFilter.php
+3
-1
routes.php
app/Http/routes.php
+0
-0
AppServiceProvider.php
app/Providers/AppServiceProvider.php
+1
-1
ArtisanServiceProvider.php
app/Providers/ArtisanServiceProvider.php
+1
-1
ErrorServiceProvider.php
app/Providers/ErrorServiceProvider.php
+1
-1
EventServiceProvider.php
app/Providers/EventServiceProvider.php
+1
-1
FilterServiceProvider.php
app/Providers/FilterServiceProvider.php
+6
-6
LogServiceProvider.php
app/Providers/LogServiceProvider.php
+1
-1
RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
+5
-2
User.php
app/User.php
+0
-0
composer.json
composer.json
+1
-7
app.php
config/app.php
+7
-7
namespaces.php
config/namespaces.php
+31
-0
No files found.
app/Console/InspireCommand.php
View file @
177d1ebb
<?php
<?php
namespace
App\Console
;
use
Illuminate\Console\Command
;
use
Illuminate\Foundation\Inspiring
;
...
...
app/Http/Controllers/HomeController.php
View file @
177d1ebb
<?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'
);
}
}
app/Http/Filters/AuthFilter.php
View file @
177d1ebb
<?php
<?php
namespace
App\Http\Filters
;
use
Illuminate\Http\Request
;
use
Auth
,
Redirect
,
Response
;
class
AuthFilter
{
...
...
app/Http/Filters/BasicAuthFilter.php
View file @
177d1ebb
<?php
<?php
namespace
App\Http\Filters
;
use
Auth
;
class
BasicAuthFilter
{
...
...
app/Http/Filters/CsrfFilter.php
View file @
177d1ebb
<?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
;
}
}
...
...
app/Http/Filters/GuestFilter.php
View file @
177d1ebb
<?php
<?php
namespace
App\Http\Filters
;
use
Auth
,
Redirect
;
class
GuestFilter
{
...
...
app/Http/Filters/MaintenanceFilter.php
View file @
177d1ebb
<?php
<?php
namespace
App\Http\Filters
;
use
App
,
Response
;
class
MaintenanceFilter
{
...
...
app/routes.php
→
app/
Http/
routes.php
View file @
177d1ebb
File moved
app/Providers/AppServiceProvider.php
View file @
177d1ebb
<?php
namespace
Providers
;
<?php
namespace
App\
Providers
;
use
Illuminate\Support\ServiceProvider
;
...
...
app/Providers/ArtisanServiceProvider.php
View file @
177d1ebb
<?php
namespace
Providers
;
<?php
namespace
App\
Providers
;
use
InspireCommand
;
use
Illuminate\Support\ServiceProvider
;
...
...
app/Providers/ErrorServiceProvider.php
View file @
177d1ebb
<?php
namespace
Providers
;
<?php
namespace
App\
Providers
;
use
Illuminate\Support\ServiceProvider
;
...
...
app/Providers/EventServiceProvider.php
View file @
177d1ebb
<?php
namespace
Providers
;
<?php
namespace
App\
Providers
;
use
Illuminate\Foundation\Providers\EventServiceProvider
as
ServiceProvider
;
...
...
app/Providers/FilterServiceProvider.php
View file @
177d1ebb
<?php
namespace
Providers
;
<?php
namespace
App\
Providers
;
use
Illuminate\Routing\FilterServiceProvider
as
ServiceProvider
;
...
...
@@ -10,7 +10,7 @@ class FilterServiceProvider extends ServiceProvider {
* @var array
*/
protected
$before
=
[
'MaintenanceFilter'
,
'
App\Http\Filters\
MaintenanceFilter'
,
];
/**
...
...
@@ -28,10 +28,10 @@ class FilterServiceProvider extends ServiceProvider {
* @var array
*/
protected
$filters
=
[
'auth'
=>
'AuthFilter'
,
'auth.basic'
=>
'BasicAuthFilter'
,
'csrf'
=>
'CsrfFilter'
,
'guest'
=>
'GuestFilter'
,
'auth'
=>
'A
pp\Http\Filters\A
uthFilter'
,
'auth.basic'
=>
'
App\Http\Filters\
BasicAuthFilter'
,
'csrf'
=>
'
App\Http\Filters\
CsrfFilter'
,
'guest'
=>
'
App\Http\Filters\
GuestFilter'
,
];
}
\ No newline at end of file
app/Providers/LogServiceProvider.php
View file @
177d1ebb
<?php
namespace
Providers
;
<?php
namespace
App\
Providers
;
use
Illuminate\Support\ServiceProvider
;
...
...
app/Providers/RouteServiceProvider.php
View file @
177d1ebb
<?php
namespace
Providers
;
<?php
namespace
App\
Providers
;
use
Illuminate\Routing\RouteServiceProvider
as
ServiceProvider
;
...
...
@@ -25,7 +25,10 @@ class RouteServiceProvider extends ServiceProvider {
{
$this
->
app
->
booted
(
function
()
{
require
app
(
'path'
)
.
'/routes.php'
;
$this
->
namespaced
(
function
()
{
require
app
(
'path'
)
.
'/Http/routes.php'
;
});
});
}
...
...
app/
Core/
User.php
→
app/User.php
View file @
177d1ebb
File moved
composer.json
View file @
177d1ebb
...
...
@@ -9,17 +9,11 @@
},
"autoload"
:
{
"classmap"
:
[
"app/Console"
,
"app/Http/Controllers"
,
"database"
,
"app/Http/Filters"
,
"app/Providers"
,
"app/Http/Requests"
,
"tests/TestCase.php"
],
"psr-4"
:
{
"App
\\
"
:
"app/Core/"
,
"Providers
\\
"
:
"app/Providers/"
"App
\\
"
:
"app/"
}
},
"scripts"
:
{
...
...
config/app.php
View file @
177d1ebb
...
...
@@ -98,13 +98,13 @@ return array(
/*
* Application Service Providers...
*/
'Providers\AppServiceProvider'
,
'Providers\ArtisanServiceProvider'
,
'Providers\ErrorServiceProvider'
,
'Providers\EventServiceProvider'
,
'Providers\FilterServiceProvider'
,
'Providers\LogServiceProvider'
,
'Providers\RouteServiceProvider'
,
'
App\
Providers\AppServiceProvider'
,
'
App\
Providers\ArtisanServiceProvider'
,
'
App\
Providers\ErrorServiceProvider'
,
'
App\
Providers\EventServiceProvider'
,
'
App\
Providers\FilterServiceProvider'
,
'
App\
Providers\LogServiceProvider'
,
'
App\
Providers\RouteServiceProvider'
,
/*
* Laravel Framework Service Providers...
...
...
config/namespaces.php
0 → 100644
View file @
177d1ebb
<?php
return
array
(
/*
|--------------------------------------------------------------------------
| Application Namespace
|--------------------------------------------------------------------------
|
| This is the root namespace used by the various Laravel generator tasks
| that are able to build controllers, console commands and many other
| classes for you. You may set the name via the "app:name" command.
|
*/
'root'
=>
'App\\'
,
/*
|--------------------------------------------------------------------------
| Root Controller Namespace
|--------------------------------------------------------------------------
|
| This namespace will be automatically prepended to URLs generated via
| the URL generator for controller actions, allowing for the simple
| and convenient referencing of your namespaced controller class.
|
*/
'controllers'
=>
'App\Http\Controllers'
,
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment