Skip to content

Commit

Permalink
fix words
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Aug 16, 2016
1 parent 5aa94c2 commit 2093f6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ <h6>Basic Database Usage</h6>
DB::table('posts')->delete();
});
DB::beginTransaction();
DB::rollback();
DB::rollBack();
DB::commit();
</pre>

Expand Down Expand Up @@ -597,11 +597,6 @@ <h6>Aggregates <a href="http://laravel.com/docs/5.1/queries#aggregates" title="A
$price = DB::table('orders')->min('price');
$price = DB::table('orders')->avg('price');
$total = DB::table('users')->sum('votes');

DB::table('name')->remember(5)->get();
DB::table('name')->remember(5, 'cache-key-name')->get();
DB::table('name')->cacheTags('my-key')->remember(5)->get();
DB::table('name')->cacheTags(array('my-first-key','my-second-key'))->remember(5)->get();
</pre>

<h6>Raw Expressions <a href="http://laravel.com/docs/5.1/queries#raw-expressions" title="Raw Expressions @ Laravel Docs"><i class="icon-file-text"></i></a></h6>
Expand Down Expand Up @@ -704,10 +699,6 @@ <h6>More</h6>
//Output raw query
Model::where('foo', '=', 'bar')->toSql();
Model::whereRaw('foo = bar and cars = 2', array(20))->get();
Model::remember(5)->get();
Model::remember(5, 'cache-key-name')->get();
Model::cacheTags('my-tag')->remember(5)->get();
Model::cacheTags(array('my-first-key','my-second-key'))->remember(5)->get();
Model::on('connection-name')->find(1);
Model::with('relation')->get();
Model::all()->take(10);
Expand Down
11 changes: 1 addition & 10 deletions index_zh-CN.html
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ <h6>基本使用</h6>
DB::table('posts')->delete();
});
DB::beginTransaction();
DB::rollback();
DB::rollBack();
DB::commit();
</pre>

Expand Down Expand Up @@ -597,11 +597,6 @@ <h6>聚合 <a href="http://laravel-china.org/docs/5.1/queries#aggregates" title=
$price = DB::table('orders')->min('price');
$price = DB::table('orders')->avg('price');
$total = DB::table('users')->sum('votes');

DB::table('name')->remember(5)->get();
DB::table('name')->remember(5, 'cache-key-name')->get();
DB::table('name')->cacheTags('my-key')->remember(5)->get();
DB::table('name')->cacheTags(array('my-first-key','my-second-key'))->remember(5)->get();
</pre>

<h6>原始表达句<a href="http://laravel-china.org/docs/5.1/queries#raw-expressions" title="Raw Expressions @ Laravel Docs"><i class="icon-file-text"></i></a></h6>
Expand Down Expand Up @@ -704,10 +699,6 @@ <h6>More</h6>
// 输出原始的查询语句
Model::where('foo', '=', 'bar')->toSql();
Model::whereRaw('foo = bar and cars = 2', array(20))->get();
Model::remember(5)->get();
Model::remember(5, 'cache-key-name')->get();
Model::cacheTags('my-tag')->remember(5)->get();
Model::cacheTags(array('my-first-key','my-second-key'))->remember(5)->get();
Model::on('connection-name')->find(1);
Model::with('relation')->get();
Model::all()->take(10);
Expand Down

0 comments on commit 2093f6d

Please sign in to comment.