Learning Laravel 4 Application Development 堪误

 这本书的错误还真不少。

 

Errata

- 12 submitted: last submission 04 Sep 2014

Errata Type: Code | Page number: 29

$ php artisan controller make:user

should be replaced with

$ php artisan controller:make user

 

Errata Type: code | Page number: 35

Route::get('contact', 'Pages@contact');

should be

Route::get('contact', 'PagesController@contact');

Errata Type: Code | Page number: 39


$ php artisan Usercontroller:make users

should be replaced with

$ php artisan controller:make UserController

This will generate "UsersController.php" with all
应改为 "UserController.php"

Errata type: Code| Page Number: 42

 

@extends('users.user')

should be inserted before

@section('main')

Errata Type: Code | Page Number: 44

Laravel will load the users.blade.php layout

should be replaced with


Laravel will load the user.blade.php layout

 

 

Errata Type: Code | Page Number: 45

 

@extends('layouts.users')

should be replaced with
@extends('users.user')

Errata Type: Code | Page Number: 48

protected $guarded = array('id');

should be replaced with


protected $guarded = array('id','password_confirmation');

Errata Type: Code | Page Number: 50

@extends('users.scaffold')

should be replaced with:

@extends('
users.user')

 

 

Errata Type: Code | Page number: 51

return Redirect::route('users.show', $id);

should be replaced with

 return Redirect::route('users.index');

 

Errata Type: Code | Page number: 53

{{ echo $users->links(); }}

should be replaced with

{{  $users->links(); }}

 

Errata Type: Code | Page number: 60

DB::table('users')->insert(
array('username'=>'James','email' => 'james@gmail.
com','password'=>$hashed),
array('username'=>'Steve','email' => 'stever@yahoo.
com','password'=>$hashed)

should be replaced with

DB::table('users')->insert(array(
array('username'=>'James','email' => 'james@gmail.
com','password'=>$hashed),
array('username'=>'Steve','email' => 'stever@yahoo.
com','password'=>$hashed)

 

 

Errata Type: Code | Page Number: 72

Route::get('/about', function()
{
return View::make('about')->with('title','About
Foldagram')->with('page','about');
});

should be replaced with

Route::get('/about', array('as' => 'about', function()
{
 return View::make('about')->with('title','About Foldagram')->with('class','about');
}));

 

Errata Type: Code | Page number: 74

@endsection

should be replaced by

@stop

 

Errata Type: Code | Page number : 90

$ php artisan workbench Acme/Cart –resources

shoud be:

$ php artisan workbench Acme/Cart --resources 

 

https://www.packtpub.com/books/content/support/15860

 

http://www.jianshu.com/p/50892fac6cbc

 

http://www-cs-students.stanford.edu/~blynn/gitmagic/intl/zh_cn/

 

http://www.salttiger.com/category/notification/

http://www.ebookee.net/

你可能感兴趣的:(application)