@@ -440,7 +440,7 @@ <h6>Query Logging <a href="http://laravel.com/docs/database#query-logging" title
440
440
</ section >
441
441
442
442
< section class ="cmd-description grid-item ">
443
- < h4 > < a name ="urls " href ="#urls "> URL</ a > < a href ="http://laravel.com/api/5.0 /Illuminate/Routing/UrlGenerator.html " title ="UrlGenerator @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > < a href ="http://laravel.com/docs/helpers#urls " title ="URL helper @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h4 >
443
+ < h4 > < a name ="urls " href ="#urls "> URL</ a > < a href ="http://laravel.com/api/5.1 /Illuminate/Routing/UrlGenerator.html " title ="UrlGenerator @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > < a href ="http://laravel.com/docs/helpers#urls " title ="URL helper @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h4 >
444
444
< pre class ="prettyprint lang-php ">
445
445
URL::full();
446
446
URL::current();
@@ -478,7 +478,7 @@ <h4><a name="events" href="#events">Event</a> <a href="http://laravel.com/docs/e
478
478
</ section >
479
479
480
480
< section class ="cmd-description grid-item ">
481
- < h4 > < a name ="db " href ="#db "> DB</ a > < a href ="http://laravel.com/docs/5.0 /database " title ="Basic Database Usage @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h4 >
481
+ < h4 > < a name ="db " href ="#db "> DB</ a > < a href ="http://laravel.com/docs/5.1 /database " title ="Basic Database Usage @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h4 >
482
482
483
483
< h6 > Basic Database Usage</ h6 >
484
484
< pre class ="prettyprint lang-php ">
@@ -501,7 +501,7 @@ <h6>Basic Database Usage</h6>
501
501
DB::commit();
502
502
</ pre >
503
503
504
- < h6 > Query Builder < a href ="http://laravel.com/docs/5.0 /queries " title ="Query Builder @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
504
+ < h6 > Query Builder < a href ="http://laravel.com/docs/5.1 /queries " title ="Query Builder @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
505
505
< pre class ="prettyprint lang-php ">
506
506
// Retrieving All Rows From A Table
507
507
DB::table('name')-> get();
@@ -567,7 +567,7 @@ <h6>Query Builder <a href="http://laravel.com/docs/5.0/queries" title="Query Bui
567
567
$users = DB::table('users')-> skip(10)-> take(5)-> get();
568
568
</ pre >
569
569
570
- < h6 > Joins < a href ="http://laravel.com/docs/5.0 /queries#joins " title ="Joins @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
570
+ < h6 > Joins < a href ="http://laravel.com/docs/5.1 /queries#joins " title ="Joins @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
571
571
< pre class ="prettyprint lang-php ">
572
572
// Basic Join Statement
573
573
DB::table('users')
@@ -590,7 +590,7 @@ <h6>Joins <a href="http://laravel.com/docs/5.0/queries#joins" title="Joins @ Lar
590
590
-> get();
591
591
</ pre >
592
592
593
- < h6 > Aggregates < a href ="http://laravel.com/docs/5.0 /queries#aggregates " title ="Aggregates @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
593
+ < h6 > Aggregates < a href ="http://laravel.com/docs/5.1 /queries#aggregates " title ="Aggregates @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
594
594
< pre class ="prettyprint lang-php ">
595
595
$users = DB::table('users')-> count();
596
596
$price = DB::table('orders')-> max('price');
@@ -604,7 +604,7 @@ <h6>Aggregates <a href="http://laravel.com/docs/5.0/queries#aggregates" title="A
604
604
DB::table('name')-> cacheTags(array('my-first-key','my-second-key'))-> remember(5)-> get();
605
605
</ pre >
606
606
607
- < h6 > Raw Expressions < a href ="http://laravel.com/docs/5.0 /queries#raw-expressions " title ="Raw Expressions @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
607
+ < 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 >
608
608
< pre class ="prettyprint lang-php ">
609
609
$users = DB::table('users')
610
610
-> select(DB::raw('count(*) as user_count, status'))
@@ -661,7 +661,7 @@ <h6>Inserts / Updates / Deletes / Unions / Pessimistic Locking</h6>
661
661
662
662
< section class ="cmd-description grid-item ">
663
663
< h4 > < a name ="eloquent " href ="#eloquent "> Model</ a > < a href ="http://laravel.com/docs/eloquent " title ="Eloquent @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h4 >
664
- < h6 > Basic Usage < a href ="http://laravel.com/docs/5.0 /eloquent#basic-usage " title ="Basic Usage @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
664
+ < h6 > Basic Usage < a href ="http://laravel.com/docs/5.1 /eloquent#basic-usage " title ="Basic Usage @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
665
665
< pre class ="prettyprint lang-php ">
666
666
// Defining An Eloquent Model
667
667
class User extends Model {}
@@ -716,7 +716,7 @@ <h6>More</h6>
716
716
Model::all()-> orderBy('column','desc');
717
717
</ pre >
718
718
719
- < h6 > Soft Delete < a href ="http://laravel.com/docs/5.0 /eloquent#soft-deleting " title ="Soft Deleting @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
719
+ < h6 > Soft Delete < a href ="http://laravel.com/docs/5.1 /eloquent#soft-deleting " title ="Soft Deleting @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h6 >
720
720
< pre class ="prettyprint lang-php ">
721
721
Model::withTrashed()-> where('cars', 2)-> get();
722
722
// Include the soft deleted models in the results
@@ -878,7 +878,7 @@ <h4><a name="localization" href="#localization">Lang</a> <a href="http://laravel
878
878
</ section >
879
879
880
880
< section class ="cmd-description grid-item ">
881
- < h4 > < a name ="files " href ="#files "> File</ a > < a href ="http://laravel.com/api/5.0 /Illuminate/Filesystem/Filesystem.html " title ="Filesystem @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h4 >
881
+ < h4 > < a name ="files " href ="#files "> File</ a > < a href ="http://laravel.com/api/5.1 /Illuminate/Filesystem/Filesystem.html " title ="Filesystem @ Laravel Docs "> < i class ="icon-file-text "> </ i > </ a > </ h4 >
882
882
< pre class ="prettyprint lang-php ">
883
883
File::exists('path');
884
884
File::get('path');
0 commit comments