@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * Execute the console command. |
| 56 | 56 | * |
| 57 | - * @return mixed |
|
| 57 | + * @return boolean |
|
| 58 | 58 | */ |
| 59 | 59 | public function handle() |
| 60 | 60 | { |
@@ -615,6 +615,11 @@ discard block |
||
| 615 | 615 | return file_put_contents($filePath, $new_contents); |
| 616 | 616 | } |
| 617 | 617 | |
| 618 | + /** |
|
| 619 | + * @param string $filePath |
|
| 620 | + * @param string $keyword |
|
| 621 | + * @param string $body |
|
| 622 | + */ |
|
| 618 | 623 | public function insert($filePath, $keyword, $body, $after = true) { |
| 619 | 624 | |
| 620 | 625 | $contents = file_get_contents($filePath); |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace iMokhles\MultiAuthCommand\Command; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Database\Console\Migrations\BaseCommand; |
| 6 | -use Illuminate\Support\Composer; |
|
| 7 | 6 | use Illuminate\Database\Migrations\MigrationCreator; |
| 7 | +use Illuminate\Support\Composer; |
|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | class MultiAuthPrepare extends BaseCommand |