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
0e0fd73b
Commit
0e0fd73b
authored
Jul 31, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on overall app structure.
parent
a5001352
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
226 additions
and
113 deletions
+226
-113
.gitkeep
app/commands/.gitkeep
+0
-0
InspireCommand.php
app/commands/InspireCommand.php
+43
-0
app.php
app/config/app.php
+5
-0
filters.php
app/routing/filters.php
+4
-1
routes.php
app/routing/routes.php
+13
-0
AppServiceProvider.php
app/src/Providers/AppServiceProvider.php
+27
-0
ArtisanServiceProvider.php
app/src/Providers/ArtisanServiceProvider.php
+45
-0
ErrorServiceProvider.php
app/src/Providers/ErrorServiceProvider.php
+46
-0
LogServiceProvider.php
app/src/Providers/LogServiceProvider.php
+41
-0
User.php
app/src/User.php
+0
-0
artisan.php
app/start/artisan.php
+0
-13
global.php
app/start/global.php
+0
-81
local.php
app/start/local.php
+0
-3
autoload.php
bootstrap/autoload.php
+0
-13
composer.json
composer.json
+2
-2
No files found.
app/co
nsole
/.gitkeep
→
app/co
mmands
/.gitkeep
View file @
0e0fd73b
File moved
app/commands/InspireCommand.php
0 → 100644
View file @
0e0fd73b
<?php
use
Illuminate\Console\Command
;
use
Symfony\Component\Console\Input\InputOption
;
use
Symfony\Component\Console\Input\InputArgument
;
class
InspireCommand
extends
Command
{
/**
* The console command name.
*
* @var string
*/
protected
$name
=
'inspire'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Display an inpiring quote..'
;
/**
* Create a new command instance.
*
* @return void
*/
public
function
__construct
()
{
parent
::
__construct
();
}
/**
* Execute the console command.
*
* @return mixed
*/
public
function
fire
()
{
$this
->
comment
(
'Inspiring Quote Here.'
);
}
}
app/config/app.php
View file @
0e0fd73b
...
...
@@ -95,6 +95,11 @@ return array(
'providers'
=>
array
(
'AppServiceProvider'
,
'ArtisanServiceProvider'
,
'ErrorServiceProvider'
,
'LogServiceProvider'
,
'Illuminate\Foundation\Providers\ArtisanServiceProvider'
,
'Illuminate\Auth\AuthServiceProvider'
,
'Illuminate\Cache\CacheServiceProvider'
,
...
...
app/filters.php
→
app/
routing/
filters.php
View file @
0e0fd73b
...
...
@@ -13,7 +13,10 @@
App
::
before
(
function
(
$request
)
{
//
if
(
App
::
isDownForMaintenance
())
{
return
Response
::
make
(
'Be right back!'
);
}
});
...
...
app/routes.php
→
app/rout
ing/rout
es.php
View file @
0e0fd73b
<?php
/*
|--------------------------------------------------------------------------
| Require The Filters File
|--------------------------------------------------------------------------
|
| Next we will load the filters file for the application. This gives us
| a nice separate location to store our route and application filter
| definitions instead of putting them all in the main routes file.
|
*/
require
__DIR__
.
'/filters.php'
;
/*
|--------------------------------------------------------------------------
| Application Routes
...
...
app/src/Providers/AppServiceProvider.php
0 → 100644
View file @
0e0fd73b
<?php
use
Illuminate\Support\ServiceProvider
;
class
AppServiceProvider
extends
ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public
function
boot
()
{
//
}
/**
* Register the service provider.
*
* @return void
*/
public
function
register
()
{
//
}
}
\ No newline at end of file
app/src/Providers/ArtisanServiceProvider.php
0 → 100644
View file @
0e0fd73b
<?php
use
Illuminate\Support\ServiceProvider
;
class
ArtisanServiceProvider
extends
ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public
function
boot
()
{
//
}
/**
* Register the service provider.
*
* @return void
*/
public
function
register
()
{
$this
->
registerInspireCommand
();
$this
->
commands
(
'commands.inspire'
);
}
/**
* Register the Inspire Artisan command.
*
* @return void
*/
protected
function
registerInspireCommand
()
{
// Each available Artisan command must be registered with the console so
// that it is available to be called. We'll register every command so
// the console gets access to each of the command object instances.
$this
->
app
->
bindShared
(
'commands.inspire'
,
function
()
{
return
new
InspireCommand
;
});
}
}
\ No newline at end of file
app/src/Providers/ErrorServiceProvider.php
0 → 100644
View file @
0e0fd73b
<?php
use
Illuminate\Support\ServiceProvider
;
class
ErrorServiceProvider
extends
ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public
function
boot
()
{
$this
->
setupErrorHandlers
();
}
/**
* Register the service provider.
*
* @return void
*/
public
function
register
()
{
//
}
/**
* Setup the error handlers for the application.
*
* @return void
*/
protected
function
setupErrorHandlers
()
{
// Here you may handle any errors that occur in your application, including
// logging them or displaying custom views for specific errors. You may
// even register several error handlers to handle different types of
// exceptions. If nothing is returned, the default error view is
// shown, which includes a detailed stack trace during debug.
$this
->
app
->
error
(
function
(
Exception
$exception
,
$code
)
{
Log
::
error
(
$exception
);
});
}
}
\ No newline at end of file
app/src/Providers/LogServiceProvider.php
0 → 100644
View file @
0e0fd73b
<?php
use
Illuminate\Support\ServiceProvider
;
class
LogServiceProvider
extends
ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public
function
boot
()
{
$this
->
setupLogging
();
}
/**
* Register the service provider.
*
* @return void
*/
public
function
register
()
{
//
}
/**
* Setup the logging facilities for the application.
*
* @return void
*/
protected
function
setupLogging
()
{
// Here we will configure the error logger setup for the application which
// is built on top of the wonderful Monolog library. By default we will
// build a basic log file setup which creates a single file for logs.
Log
::
useFiles
(
storage_path
()
.
'/logs/laravel.log'
);
}
}
\ No newline at end of file
app/
models
/User.php
→
app/
src
/User.php
View file @
0e0fd73b
File moved
app/start/artisan.php
deleted
100644 → 0
View file @
a5001352
<?php
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
|
*/
app/start/global.php
deleted
100644 → 0
View file @
a5001352
<?php
/*
|--------------------------------------------------------------------------
| Register The Laravel Class Loader
|--------------------------------------------------------------------------
|
| In addition to using Composer, you may use the Laravel class loader to
| load your controllers and models. This is useful for keeping all of
| your classes in the "global" namespace without Composer updating.
|
*/
ClassLoader
::
addDirectories
(
array
(
app_path
()
.
'/console'
,
app_path
()
.
'/controllers'
,
app_path
()
.
'/models'
,
app_path
()
.
'/database/seeds'
,
));
/*
|--------------------------------------------------------------------------
| Application Error Logger
|--------------------------------------------------------------------------
|
| Here we will configure the error logger setup for the application which
| is built on top of the wonderful Monolog library. By default we will
| build a basic log file setup which creates a single file for logs.
|
*/
Log
::
useFiles
(
storage_path
()
.
'/logs/laravel.log'
);
/*
|--------------------------------------------------------------------------
| Application Error Handler
|--------------------------------------------------------------------------
|
| Here you may handle any errors that occur in your application, including
| logging them or displaying custom views for specific errors. You may
| even register several error handlers to handle different types of
| exceptions. If nothing is returned, the default error view is
| shown, which includes a detailed stack trace during debug.
|
*/
App
::
error
(
function
(
Exception
$exception
,
$code
)
{
Log
::
error
(
$exception
);
});
/*
|--------------------------------------------------------------------------
| Maintenance Mode Handler
|--------------------------------------------------------------------------
|
| The "down" Artisan command gives you the ability to put an application
| into maintenance mode. Here, you will define what is displayed back
| to the user if maintenance mode is in effect for the application.
|
*/
App
::
down
(
function
()
{
return
Response
::
make
(
"Be right back!"
,
503
);
});
/*
|--------------------------------------------------------------------------
| Require The Filters File
|--------------------------------------------------------------------------
|
| Next we will load the filters file for the application. This gives us
| a nice separate location to store our route and application filter
| definitions instead of putting them all in the main routes file.
|
*/
require
app_path
()
.
'/filters.php'
;
app/start/local.php
deleted
100644 → 0
View file @
a5001352
<?php
//
\ No newline at end of file
bootstrap/autoload.php
View file @
0e0fd73b
...
...
@@ -32,19 +32,6 @@ if (file_exists($compiled = __DIR__.'/compiled.php'))
require
$compiled
;
}
/*
|--------------------------------------------------------------------------
| Setup Patchwork UTF-8 Handling
|--------------------------------------------------------------------------
|
| The Patchwork library provides solid handling of UTF-8 strings as well
| as provides replacements for all mb_* and iconv type functions that
| are not available by default in PHP. We'll setup this stuff here.
|
*/
Patchwork\Utf8\Bootup
::
initMbstring
();
/*
|--------------------------------------------------------------------------
| Register The Laravel Auto Loader
...
...
composer.json
View file @
0e0fd73b
...
...
@@ -8,11 +8,11 @@
},
"autoload"
:
{
"classmap"
:
[
"app/co
nsole
"
,
"app/co
mmands
"
,
"app/controllers"
,
"app/models"
,
"app/database/migrations"
,
"app/database/seeds"
,
"app/src"
,
"app/tests/TestCase.php"
]
},
...
...
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