Skip to content

Commit 2f93138

Browse files
author
zhangyue
committed
20170428
1 parent 6128117 commit 2f93138

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+661
-83
lines changed

routes/web.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313

1414
Route::get('/', function (\Illuminate\Http\Request $request) {
15+
dd();
1516
return view('welcome');
1617
});
1718

vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ public static function rules($type, $rules, $reset = false)
379379
/**
380380
* Returns a word in plural form.
381381
*
382+
* 以复数形式返回一个单词
383+
*
382384
* @param string $word The word in singular form.
383385
*
384386
* @return string The word in plural form.
@@ -426,6 +428,8 @@ public static function pluralize($word)
426428
/**
427429
* Returns a word in singular form.
428430
*
431+
* 以单数形式返回一个单词
432+
*
429433
* @param string $word The word in plural form.
430434
*
431435
* @return string The word in singular form.

vendor/laravel/framework/src/Illuminate/Contracts/Mail/Mailable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Illuminate\Contracts\Mail;
44

55
use Illuminate\Contracts\Queue\Factory as Queue;
6-
6+
//可邮寄的
77
interface Mailable
88
{
99
/**

vendor/laravel/framework/src/Illuminate/Contracts/Support/MessageBag.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public function isEmpty();
8787
/**
8888
* Get the number of messages in the container.
8989
*
90+
* 获取容器中的消息数
91+
*
9092
* @return int
9193
*/
9294
public function count();

vendor/laravel/framework/src/Illuminate/Contracts/Support/MessageProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?php
22

33
namespace Illuminate\Contracts\Support;
4-
4+
//消息提供者
55
interface MessageProvider
66
{
77
/**
88
* Get the messages for the instance.
99
*
10+
* 从实例中获取消息
11+
*
1012
* @return \Illuminate\Contracts\Support\MessageBag
1113
*/
1214
public function getMessageBag();

vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ public function deleteDirectory($directory, $preserve = false)
557557
/**
558558
* Empty the specified directory of all files and folders.
559559
*
560+
* 清空所有文件和文件夹的指定目录
561+
*
560562
* @param string $directory
561563
* @return bool
562564
*/

vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ protected function callCustomCreator(array $config)
142142
/**
143143
* Create an instance of the local driver.
144144
*
145+
* 创建本地驱动的实例
146+
*
145147
* @param array $config
146148
* @return \Illuminate\Contracts\Filesystem\Filesystem
147149
*/
@@ -274,6 +276,8 @@ protected function adapt(FilesystemInterface $filesystem)
274276
/**
275277
* Set the given disk instance.
276278
*
279+
* 设置给定的磁盘实例
280+
*
277281
* @param string $name
278282
* @param mixed $disk
279283
* @return void

vendor/laravel/framework/src/Illuminate/Mail/PendingMail.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public function __construct(Mailer $mailer)
4848
/**
4949
* Set the recipients of the message.
5050
*
51+
* 设置消息的收件人
52+
*
5153
* @param mixed $users
5254
* @return $this
5355
*/
@@ -74,6 +76,8 @@ public function cc($users)
7476
/**
7577
* Set the recipients of the message.
7678
*
79+
* 设置消息的接收者
80+
*
7781
* @param mixed $users
7882
* @return $this
7983
*/
@@ -142,6 +146,8 @@ public function later($delay, Mailable $mailable)
142146
/**
143147
* Populate the mailable with the addresses.
144148
*
149+
* 填充邮件地址
150+
*
145151
* @param Mailable $mailable
146152
* @return Mailable
147153
*/

vendor/laravel/framework/src/Illuminate/Support/Debug/Dumper.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@
44

55
use Symfony\Component\VarDumper\Cloner\VarCloner;
66
use Symfony\Component\VarDumper\Dumper\CliDumper;
7-
7+
//倾倒 包装var_dump()
88
class Dumper
99
{
1010
/**
1111
* Dump a value with elegance.
1212
*
13+
* 简洁地倾倒一个值
14+
*
1315
* @param mixed $value
1416
* @return void
1517
*/
1618
public function dump($value)
1719
{
20+
// CliDumper转储命令行输出变量
1821
if (class_exists(CliDumper::class)) {
22+
// CliDumper转储命令行输出变量 //HtmlDumper将变量转储为HTML
1923
$dumper = 'cli' === PHP_SAPI ? new CliDumper : new HtmlDumper;
20-
24+
// 克隆PHP变量
2125
$dumper->dump((new VarCloner)->cloneVar($value));
2226
} else {
2327
var_dump($value);

vendor/laravel/framework/src/Illuminate/Support/Debug/HtmlDumper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
namespace Illuminate\Support\Debug;
44

55
use Symfony\Component\VarDumper\Dumper\HtmlDumper as SymfonyHtmlDumper;
6-
6+
//HtmlDumper将变量转储为HTML
77
class HtmlDumper extends SymfonyHtmlDumper
88
{
99
/**
1010
* Colour definitions for output.
1111
*
12+
* 输出的颜色定义
13+
*
1214
* @var array
1315
*/
1416
protected $styles = [

0 commit comments

Comments
 (0)