Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
0909dc25
Commit
0909dc25
authored
Mar 30, 2016
by
Graham Campbell
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into develop
parents
b1b524d7
3fc105d3
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
25 deletions
+40
-25
.env.example
+1
-0
app/Http/routes.php
+2
-17
app/Providers/RouteServiceProvider.php
+19
-2
app/User.php
+1
-1
composer.json
+2
-4
config/database.php
+1
-1
config/session.php
+13
-0
storage/framework/.gitignore
+1
-0
No files found.
.env.example
View file @
0909dc25
...
...
@@ -3,6 +3,7 @@ APP_DEBUG=true
APP_KEY=SomeRandomString
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
...
...
app/Http/routes.php
View file @
0909dc25
...
...
@@ -2,10 +2,10 @@
/*
|--------------------------------------------------------------------------
|
Routes File
|
Application Routes
|--------------------------------------------------------------------------
|
| Here is where you
will register all of the routes in
an application.
| 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 controller to call when that URI is requested.
|
...
...
@@ -14,18 +14,3 @@
Route
::
get
(
'/'
,
function
()
{
return
view
(
'welcome'
);
});
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
Route
::
group
([
'middleware'
=>
[
'web'
]],
function
()
{
//
});
app/Providers/RouteServiceProvider.php
View file @
0909dc25
...
...
@@ -8,7 +8,7 @@ use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvi
class
RouteServiceProvider
extends
ServiceProvider
{
/**
* This namespace is applied to
the controller routes in your routes file
.
* This namespace is applied to
your controller routes
.
*
* In addition, it is set as the URL generator's root namespace.
*
...
...
@@ -37,7 +37,24 @@ class RouteServiceProvider extends ServiceProvider
*/
public
function
map
(
Router
$router
)
{
$router
->
group
([
'namespace'
=>
$this
->
namespace
],
function
(
$router
)
{
$this
->
mapWebRoutes
(
$router
);
//
}
/**
* Define the "web" routes for the application.
*
* These routes all receive session state, CSRF protection, etc.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
protected
function
mapWebRoutes
(
Router
$router
)
{
$router
->
group
([
'namespace'
=>
$this
->
namespace
,
'middleware'
=>
'web'
,
],
function
(
$router
)
{
require
app_path
(
'Http/routes.php'
);
});
}
...
...
app/User.php
View file @
0909dc25
...
...
@@ -16,7 +16,7 @@ class User extends Authenticatable
];
/**
* The attributes
excluded from the model's JSON form
.
* The attributes
that should be hidden for arrays
.
*
* @var array
*/
...
...
composer.json
View file @
0909dc25
...
...
@@ -36,13 +36,11 @@
"php artisan key:generate"
],
"post-install-cmd"
:
[
"
php artisan clear-compiled
"
,
"
Illuminate
\\
Foundation
\\
ComposerScripts::postInstall
"
,
"php artisan optimize"
],
"pre-update-cmd"
:
[
"php artisan clear-compiled"
],
"post-update-cmd"
:
[
"Illuminate
\\
Foundation
\\
ComposerScripts::postUpdate"
,
"php artisan optimize"
]
},
...
...
config/database.php
View file @
0909dc25
...
...
@@ -48,7 +48,7 @@ return [
'sqlite'
=>
[
'driver'
=>
'sqlite'
,
'database'
=>
database_path
(
'database.sqlite'
),
'database'
=>
env
(
'DB_DATABASE'
,
database_path
(
'database.sqlite'
)
),
'prefix'
=>
''
,
],
...
...
config/session.php
View file @
0909dc25
...
...
@@ -150,4 +150,17 @@ return [
'secure'
=>
false
,
/*
|--------------------------------------------------------------------------
| HTTP Access Only
|--------------------------------------------------------------------------
|
| Setting this value to true will prevent JavaScript from accessing the
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. You are free to modify this option if needed.
|
*/
'http_only'
=>
true
,
];
storage/framework/.gitignore
View file @
0909dc25
config.php
routes.php
schedule-*
compiled.php
services.json
events.scanned.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