You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To create a migration, use the `make:migration:action` Artisan command:
71
71
@@ -274,7 +274,7 @@ The `migrate:actions:status` command displays the execution status of actions. I
274
274
php artisan migrate:actions:status
275
275
```
276
276
277
-
### Execution status
277
+
### Execution Status
278
278
279
279
You can also override the `success` and `failed` methods, which are called on success or failure processing.
280
280
@@ -347,7 +347,29 @@ Call the `php artisan migrate:actions` command.
347
347
348
348
The log file will contain two `failed` entries.
349
349
350
+
### Artisan Command
350
351
352
+
Quite often, when working with actions, it becomes necessary to run one or another console command, and each time you have to write the following code:
353
+
354
+
```php
355
+
use Illuminate\Support\Facades\Artisan;
356
+
357
+
public function up()
358
+
{
359
+
Artisan::call('command-name');
360
+
}
361
+
```
362
+
363
+
Since version [`2.3`](https://github.com/TheDragonCode/laravel-migration-actions/releases/tag/v2.3.0) we have added a method call. Now calling commands has become much easier:
0 commit comments