From 8c721de6cd567d37067d85f9f570a1a6af72b1ae Mon Sep 17 00:00:00 2001 From: glmdev Date: Fri, 30 Dec 2016 05:31:27 +0000 Subject: [PATCH] updated README --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e91e41f..20082ce 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,6 @@ When declaring a new model, extend the Meta model: namespace App; -use Glmdev\Meta\Meta; - class Post extends Meta { // fillable, hidden, etc. arrays @@ -53,6 +51,9 @@ To generate a migration for a new meta-model, use the following command: $ php artisan meta:migration name_of_migration --create=table_name ``` +> (The `meta:migration` command extends the `make:migration`, so it contains all of the original functionality.) + + Add your custom fields, if any, then migrate as usual: ``` bash @@ -69,8 +70,6 @@ public function createPost () { } ``` -(The `meta:migration` command extends the `make:migration`, so it contains all of the original functionality.) - But now, you have access to a universal identifier for every model in the entire project. You can check if a model has a UUID, and get it if it does: