Skip to content

Commit

Permalink
Add Extends Model
Browse files Browse the repository at this point in the history
  • Loading branch information
irazasyed committed May 30, 2015
1 parent c03b748 commit 5b9dd18
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 5b9dd18

Please sign in to comment.