Skip to content

Commit

Permalink
Merge pull request laravel#1487 from irazasyed/patch-1
Browse files Browse the repository at this point in the history
Add Extends Model
  • Loading branch information
taylorotwell committed May 31, 2015
2 parents c03b748 + 5b9dd18 commit 435eae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eloquent-mutators.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ For example, let's cast the `is_admin` attribute, which is stored in our databas

use Illuminate\Database\Eloquent\Model;

class User
class User extends Model
{
/**
* The attributes that should be casted to native types.
Expand Down Expand Up @@ -147,7 +147,7 @@ The `array` cast type is particularly useful when working with columns that are

use Illuminate\Database\Eloquent\Model;

class User
class User extends Model
{
/**
* The attributes that should be casted to native types.
Expand Down

0 comments on commit 435eae7

Please sign in to comment.