@@ -23,16 +23,16 @@ |
||
| 23 | 23 | |
| 24 | 24 | private function setConfig() |
| 25 | 25 | {
|
| 26 | - if (function_exists('config') and function_exists('app')) {//Load Config For Laravel
|
|
| 26 | + if (function_exists('config') and function_exists('app')) {//Load Config For Laravel
|
|
| 27 | 27 | if(!empty(config('irfa.serial_number')))
|
| 28 | 28 | {
|
| 29 | 29 | $this->laravelConfig(); |
| 30 | 30 | } else{
|
| 31 | 31 | $this->generalConfig(); |
| 32 | 32 | } |
| 33 | - } else{//Load Config for Non-Laravel
|
|
| 33 | + } else{//Load Config for Non-Laravel
|
|
| 34 | 34 | $this->generalConfig(); |
| 35 | - } |
|
| 35 | + } |
|
| 36 | 36 | } |
| 37 | 37 | private function laravelConfig() |
| 38 | 38 | {
|
@@ -11,10 +11,10 @@ |
||
| 11 | 11 | |
| 12 | 12 | protected function generateSN($json=false) |
| 13 | 13 | {
|
| 14 | - if($json) |
|
| 15 | - {
|
|
| 16 | - return json_encode(['sn'=>$this->generatingSN()]); |
|
| 17 | - } |
|
| 14 | + if($json) |
|
| 15 | + {
|
|
| 16 | + return json_encode(['sn'=>$this->generatingSN()]); |
|
| 17 | + } |
|
| 18 | 18 | return $this->generatingSN(); |
| 19 | 19 | } |
| 20 | 20 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | - return [ |
|
| 3 | - /* |
|
| 2 | + return [ |
|
| 3 | + /* |
|
| 4 | 4 | |-------------------------------------------------------------------------- |
| 5 | 5 | | Serial Config |
| 6 | 6 | |-------------------------------------------------------------------------- |
@@ -10,9 +10,9 @@ discard block |
||
| 10 | 10 | | seperator : striped segment for serial (set null if you do not wish to use seperator) |
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | - 'length' => 4, //default : 4 (result:ABCD) |
|
| 13 | + 'length' => 4, //default : 4 (result:ABCD) |
|
| 14 | 14 | |
| 15 | - 'segment' => 4, //default : 4 (result:ABCD-1234-A1B2-CDEF) |
|
| 15 | + 'segment' => 4, //default : 4 (result:ABCD-1234-A1B2-CDEF) |
|
| 16 | 16 | |
| 17 | 17 | 'seperator' => "-", //default : - (result : ABCD-1234-A1B2-CDEF) |
| 18 | 18 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | - $config = [ |
|
| 3 | - /* |
|
| 2 | + $config = [ |
|
| 3 | + /* |
|
| 4 | 4 | |-------------------------------------------------------------------------- |
| 5 | 5 | | Serial Config |
| 6 | 6 | |-------------------------------------------------------------------------- |
@@ -10,9 +10,9 @@ discard block |
||
| 10 | 10 | | seperator : striped segment for serial (set null if you do not wish to use seperator) |
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | - 'length' => 4, //default : 4 (result:ABCD) |
|
| 13 | + 'length' => 4, //default : 4 (result:ABCD) |
|
| 14 | 14 | |
| 15 | - 'segment' => 4, //default : 4 (result:ABCD-1234-A1B2-CDEF) |
|
| 15 | + 'segment' => 4, //default : 4 (result:ABCD-1234-A1B2-CDEF) |
|
| 16 | 16 | |
| 17 | 17 | 'seperator' => "-", //default : - (result : ABCD-1234-A1B2-CDEF) |
| 18 | 18 | |