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
> Actions are like version control for your migration process, allowing your team to modify and share the application's actionable schema. If you have ever had to tell a teammate
11
+
> Actions are like version control for your migration process, allowing your team to modify and share the application's Action schema. If you have ever had to tell a teammate
12
12
> to manually perform any action on a producton server, you've come across an issue that actions solves.
@@ -275,9 +275,9 @@ When calling the `migrate:actions` command with the `before` parameter, the scri
275
275
For backwards compatibility, the `before` parameter is set to `true` by default, but actions will only be executed if the option is explicitly passed.
276
276
277
277
```php
278
-
use DragonCode\LaravelActions\Services\Actionable;
278
+
use DragonCode\LaravelActions\Action;
279
279
280
-
return new class extends Actionable
280
+
return new class extends Action
281
281
{
282
282
protected $before = false;
283
283
@@ -320,9 +320,9 @@ By setting the `$transactions = true` parameter, you will ensure that your code
320
320
will reduce the time it takes to create the action.
321
321
322
322
```php
323
-
use DragonCode\LaravelActions\Services\Actionable;
323
+
use DragonCode\LaravelActions\Action;
324
324
325
-
return new class extends Actionable
325
+
return new class extends Action
326
326
{
327
327
protected $transactions = true;
328
328
@@ -400,9 +400,9 @@ You can also override the `success` and `failed` methods, which are called on su
400
400
#### If Success
401
401
402
402
```php
403
-
use DragonCode\LaravelActions\Services\Actionable;use Illuminate\Support\Facade\Log;
403
+
use DragonCode\LaravelActions\Action;use Illuminate\Support\Facade\Log;
404
404
405
-
return new class extends Actionable
405
+
return new class extends Action
406
406
{
407
407
public function up(): void
408
408
{
@@ -433,9 +433,11 @@ The log file will contain two `success` entries.
433
433
#### If Failed
434
434
435
435
```php
436
-
use DragonCode\LaravelActions\Services\Actionable;use Exeption;use Illuminate\Support\Facade\Log;
436
+
use DragonCode\LaravelActions\Action;
437
+
use Exeption;
438
+
use Illuminate\Support\Facade\Log;
437
439
438
-
return new class extends Actionable
440
+
return new class extends Action
439
441
{
440
442
public function up(): void
441
443
{
@@ -468,9 +470,9 @@ The log file will contain two `failed` entries.
468
470
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:
469
471
470
472
```php
471
-
use DragonCode\LaravelActions\Services\Actionable;use Illuminate\Support\Facades\Artisan;
473
+
use DragonCode\LaravelActions\Action;use Illuminate\Support\Facades\Artisan;
472
474
473
-
return new class extends Actionable
475
+
return new class extends Action
474
476
{
475
477
public function up()
476
478
{
@@ -484,9 +486,9 @@ return new class extends Actionable
484
486
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:
485
487
486
488
```php
487
-
use DragonCode\LaravelActions\Services\Actionable;
0 commit comments