File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,36 @@ The package will automatically register itself with Laravel 5.5+. For older vers
2323``` php
2424DaverDalas\LaravelPostDeployCommands\ServiceProvider::class
2525```
26-
2726## Usage
2827Create new command file. The file will be saved in database/commands directory.
2928```
3029php artisan make:deploy-command your_command_name
3130```
31+
3232Run new commands (Those which have not been started before).
3333```
3434php artisan deploy-commands:run
3535```
36-
36+ This will generate a command file ` TIMESTAMP_your_command_name.php ` in the ` dabase/commands ` directory.
37+ ``` php
38+ <?php
39+
40+ use Illuminate\Console\Command;
41+
42+ class YourCommandName extends Command
43+ {
44+ /**
45+ * Execute the console command.
46+ *
47+ * @return void
48+ */
49+ public function handle()
50+ {
51+ // $this->info('Command message');
52+ }
53+ }
54+ ```
55+ You can freely edit file at your discretion:)
3756## TODO
3857- clean code
3958- write some tests
You can’t perform that action at this time.
0 commit comments