Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gabeta committed Feb 1, 2021
1 parent 346b041 commit ed319b4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,11 @@ You also have a command that allows you to rollback
```shell
php artisan larapnn:rollback YouModelNamepace\\YourModel
```

You can add the skip option to skip the stats part (used if you are using a job):

```shell
php artisan larapnn:migrate YouModelNamepace\\YourModel --skip

php artisan larapnn:rollback YouModelNamepace\\YourModel --skip
```
29 changes: 24 additions & 5 deletions config/larapnn.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
<?php

return [

/**
* When the dial code and the number are in the same field,
* this parameter is used to filter the Ivorian numbers.
*/
'dial_code' => ['225', '00225', '+225'],

/**
* this parameter is used to make the number in a string composed only of digits
* If in database your contacts were formatted with () you must add them as a parameter.
*/
'separators' => [
' ', '-'
],

/**
* Formatting the number after processing
*/
'format' => [
/**
* Separator used after formatting
*/
'separator' => ' ',

/**
* number formatting after migration
*/
'model_migrate' => 'XX-XX-XX-XX-XX',

/**
* number formatting after migration
*/
'model_rollback' => 'XX-XX-XX-XX'
],

Expand Down Expand Up @@ -61,8 +84,4 @@
],
]
],

'separators' => [
' ', '-'
],
];

0 comments on commit ed319b4

Please sign in to comment.