Created
February 6, 2017 16:53
-
-
Save anthonybudd/1feee858a6f95c2eabb5bee22d19e6f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $product = new Product; | |
| $product->new; // Returns (bool) true | |
| $product = Product::find(15); | |
| $product->new; // Returns (bool) false | |
| $product->color = 'red'; | |
| $product->dirty; // Returns (bool) true | |
| $product->save(); | |
| $product->dirty; // Returns (bool) false | |
| $product->title; // Returns the post title | |
| $product->content; // Returns the post content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment