Skip to content

Commit 2509fc2

Browse files
authored
Update README.md
1 parent 261e483 commit 2509fc2

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,36 @@ The package will automatically register itself with Laravel 5.5+. For older vers
2323
```php
2424
DaverDalas\LaravelPostDeployCommands\ServiceProvider::class
2525
```
26-
2726
## Usage
2827
Create new command file. The file will be saved in database/commands directory.
2928
```
3029
php artisan make:deploy-command your_command_name
3130
```
31+
3232
Run new commands (Those which have not been started before).
3333
```
3434
php 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

0 commit comments

Comments
 (0)