@@ -1,54 +1,54 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'options' => [ |
|
| 5 | - 'generated_by_default' => ['migration', 'controller', 'model'], |
|
| 6 | - 'override' => true |
|
| 7 | - ], |
|
| 8 | - 'modules' => [ |
|
| 4 | + 'options' => [ |
|
| 5 | + 'generated_by_default' => ['migration', 'controller', 'model'], |
|
| 6 | + 'override' => true |
|
| 7 | + ], |
|
| 8 | + 'modules' => [ |
|
| 9 | 9 | |
| 10 | - // optional parameters : |
|
| 11 | - // 'multiple'=>[] |
|
| 12 | - // 'images'=>'single' //Images type: single, multiple |
|
| 10 | + // optional parameters : |
|
| 11 | + // 'multiple'=>[] |
|
| 12 | + // 'images'=>'single' //Images type: single, multiple |
|
| 13 | 13 | |
| 14 | - 'categories' => [ |
|
| 15 | - 'data'=>[ |
|
| 16 | - // Separated by ':', numeric value represents size of the field its 192 by default and is optional |
|
| 14 | + 'categories' => [ |
|
| 15 | + 'data'=>[ |
|
| 16 | + // Separated by ':', numeric value represents size of the field its 192 by default and is optional |
|
| 17 | 17 | |
| 18 | - // Regular data types: |
|
| 19 | - // string, int, text, bool |
|
| 18 | + // Regular data types: |
|
| 19 | + // string, int, text, bool |
|
| 20 | 20 | |
| 21 | - // Data type modifiers |
|
| 22 | - // required, unique, <numeric-values-for-size> |
|
| 21 | + // Data type modifiers |
|
| 22 | + // required, unique, <numeric-values-for-size> |
|
| 23 | 23 | |
| 24 | - // Special data types: |
|
| 25 | - // parent: requires name of a module, creates a one-to-many relation with the current module |
|
| 26 | - // related: requires name of a module, creates many to many relation with current module |
|
| 24 | + // Special data types: |
|
| 25 | + // parent: requires name of a module, creates a one-to-many relation with the current module |
|
| 26 | + // related: requires name of a module, creates many to many relation with current module |
|
| 27 | 27 | |
| 28 | - 'title' => 'string:128:required', |
|
| 29 | - 'slug' => 'string:128:unique|required', |
|
| 30 | - 'short_description' => 'string', |
|
| 31 | - ], |
|
| 32 | - 'images'=>'single' |
|
| 33 | - ], |
|
| 28 | + 'title' => 'string:128:required', |
|
| 29 | + 'slug' => 'string:128:unique|required', |
|
| 30 | + 'short_description' => 'string', |
|
| 31 | + ], |
|
| 32 | + 'images'=>'single' |
|
| 33 | + ], |
|
| 34 | 34 | |
| 35 | - 'tags' => [ |
|
| 36 | - 'data'=>[ |
|
| 37 | - 'title' => 'string:128:required' |
|
| 38 | - ] |
|
| 39 | - ], |
|
| 35 | + 'tags' => [ |
|
| 36 | + 'data'=>[ |
|
| 37 | + 'title' => 'string:128:required' |
|
| 38 | + ] |
|
| 39 | + ], |
|
| 40 | 40 | |
| 41 | - 'posts' => [ |
|
| 42 | - 'data' => [ |
|
| 43 | - 'author' => 'parent:users', |
|
| 44 | - 'title' => 'string:256:required', |
|
| 45 | - 'slug' => 'string:128:unique|required', |
|
| 46 | - 'short_description' => 'string', |
|
| 47 | - 'full_description' => 'text', |
|
| 48 | - 'category' => 'parent:categories', |
|
| 49 | - 'tags' => 'related:tags' |
|
| 50 | - ], |
|
| 51 | - 'images'=>'multiple' |
|
| 52 | - ], |
|
| 53 | - ] |
|
| 41 | + 'posts' => [ |
|
| 42 | + 'data' => [ |
|
| 43 | + 'author' => 'parent:users', |
|
| 44 | + 'title' => 'string:256:required', |
|
| 45 | + 'slug' => 'string:128:unique|required', |
|
| 46 | + 'short_description' => 'string', |
|
| 47 | + 'full_description' => 'text', |
|
| 48 | + 'category' => 'parent:categories', |
|
| 49 | + 'tags' => 'related:tags' |
|
| 50 | + ], |
|
| 51 | + 'images'=>'multiple' |
|
| 52 | + ], |
|
| 53 | + ] |
|
| 54 | 54 | ]; |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | protected function getStub($type) |
| 44 | 44 | { |
| 45 | - return file_get_contents(__DIR__ . "/../resources/stubs/$type.stub")); |
|
| 45 | + return file_get_contents(__DIR__."/../resources/stubs/$type.stub")); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | protected function model($name) |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | public function boot() |
| 12 | 12 | { |
| 13 | 13 | $this->publishes([ |
| 14 | - __DIR__ . '/../config/laragen.php' => config_path('laragen.php') |
|
| 14 | + __DIR__.'/../config/laragen.php' => config_path('laragen.php') |
|
| 15 | 15 | ], 'laragen-config'); |
| 16 | 16 | } |
| 17 | 17 | /** |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | public function register() |
| 21 | 21 | { |
| 22 | 22 | $this->mergeConfigFrom( |
| 23 | - __DIR__ . '/../config/laragen.php', |
|
| 23 | + __DIR__.'/../config/laragen.php', |
|
| 24 | 24 | 'laragen' |
| 25 | 25 | ); |
| 26 | 26 | } |