Skip to content

Commit eb245e5

Browse files
committed
初始化部署
1 parent ec6b82c commit eb245e5

File tree

12 files changed

+15622
-20
lines changed

12 files changed

+15622
-20
lines changed

Diff for: _ide_helper.php

+12,435
Large diffs are not rendered by default.

Diff for: _ide_helper_models.php

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/**
3+
* An helper file for your Eloquent Models
4+
* Copy the phpDocs from this file to the correct Model,
5+
* And remove them from this file, to prevent double declarations.
6+
*
7+
* @author Barry vd. Heuvel <[email protected]>
8+
*/
9+

Diff for: app/config/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
'Phphub\Sitemap\SitemapServiceProvider',
158158
'Maknz\Slack\SlackServiceProvider',
159159
'SimpleSoftwareIO\QrCode\QrCodeServiceProvider',
160-
160+
'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
161161
),
162162

163163
/*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Config;
4+
5+
return array(
6+
7+
/*
8+
|--------------------------------------------------------------------------
9+
| Filename & Format
10+
|--------------------------------------------------------------------------
11+
|
12+
| The default filename (without extension) and the format (php or json)
13+
|
14+
*/
15+
16+
'filename' => '_ide_helper',
17+
'format' => 'php',
18+
19+
/*
20+
|--------------------------------------------------------------------------
21+
| Helper files to include
22+
|--------------------------------------------------------------------------
23+
|
24+
| Include helper files. By default not included, but can be toggled with the
25+
| -- helpers (-H) option. Extra helper files can be included.
26+
|
27+
*/
28+
29+
'include_helpers' => false,
30+
31+
'helper_files' => array(
32+
base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
33+
),
34+
35+
/*
36+
|--------------------------------------------------------------------------
37+
| Model locations to include
38+
|--------------------------------------------------------------------------
39+
|
40+
| Define in which directories the ide-helper:models command should look
41+
| for models.
42+
|
43+
*/
44+
45+
'model_locations' => array(
46+
'app/models',
47+
),
48+
49+
50+
/*
51+
|--------------------------------------------------------------------------
52+
| Extra classes
53+
|--------------------------------------------------------------------------
54+
|
55+
| These implementations are not really extended, but called with magic functions
56+
|
57+
*/
58+
59+
'extra' => array(
60+
'Artisan' => array('Illuminate\Foundation\Artisan'),
61+
'Eloquent' => array('Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'),
62+
'Session' => array('Illuminate\Session\Store'),
63+
),
64+
65+
'magic' => array(
66+
'Log' => array(
67+
'debug' => 'Monolog\Logger::addDebug',
68+
'info' => 'Monolog\Logger::addInfo',
69+
'notice' => 'Monolog\Logger::addNotice',
70+
'warning' => 'Monolog\Logger::addWarning',
71+
'error' => 'Monolog\Logger::addError',
72+
'critical' => 'Monolog\Logger::addCritical',
73+
'alert' => 'Monolog\Logger::addAlert',
74+
'emergency' => 'Monolog\Logger::addEmergency',
75+
)
76+
),
77+
78+
/*
79+
|--------------------------------------------------------------------------
80+
| Interface implementations
81+
|--------------------------------------------------------------------------
82+
|
83+
| These interfaces will be replaced with the implementing class. Some interfaces
84+
| are detected by the helpers, others can be listed below.
85+
|
86+
*/
87+
88+
'interfaces' => array(
89+
'\Illuminate\Auth\UserInterface' => Config::get('auth.model', 'User'),
90+
)
91+
92+
);

Diff for: app/routes.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?php
2-
32
# ------------------ Route patterns---------------------
43
Route::pattern('id', '[0-9]+');
54

65
# ------------------ Page Route ------------------------
7-
6+
Route::get('/', 'PageController@home');
87
Route::get('/', [
98
'as' => 'home',
109
'uses' => 'PagesController@home',

Diff for: composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
"naux/auto-correct": "~1.0",
2727
"maknz/slack": "~1.7",
2828
"simplesoftwareio/simple-qrcode": "^1.3",
29-
"jpush/jpush": "^3.2"
29+
"jpush/jpush": "^3.2",
30+
"barryvdh/laravel-ide-helper": "~1.11",
31+
"doctrine/dbal":"~2.3"
3032
},
3133
"require-dev": {
3234
"way/generators": "~2.0",
@@ -69,6 +71,7 @@
6971
],
7072
"post-update-cmd": [
7173
"php artisan clear-compiled",
74+
"php artisan ide-helper:generate",
7275
"php artisan optimize"
7376
],
7477
"post-create-project-cmd": [

Diff for: composer.lock

+167-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)