Skip to content

Commit 0844fe3

Browse files
committed
wip
1 parent 2f86cf8 commit 0844fe3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ php artisan make:action CreateUser
8484
Essa ação irá gerar um arquivo em `app/Actions/CreateUser.php` com o seguinte conteúdo:
8585

8686
```php
87+
<?php
88+
8789
execute('create user', function () {
8890
// ...
8991
});
@@ -95,8 +97,6 @@ Por padrão, o namespace utilizado para criação e leitura de ações é `App\A
9597
php artisan vendor:publish --tag=fraction-config
9698
```
9799

98-
### Default
99-
100100
Para executar uma ação, você pode usar a função `run`:
101101

102102
```php

src/FractionServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function register(): void
1414
{
1515
$this->app->singleton('fraction', fn (Application $app) => new FractionManager($app));
1616

17-
$this->mergeConfigFrom(__DIR__.'/../config.php', 'fraction');
17+
$this->mergeConfigFrom(__DIR__.'/config.php', 'fraction');
1818

1919
if (! $this->app->runningInConsole()) {
2020
return;
@@ -29,7 +29,7 @@ public function register(): void
2929
public function boot(): void
3030
{
3131
$this->publishes([
32-
__DIR__.'/../config.php' => config_path('fraction.php'),
32+
__DIR__.'/config.php' => config_path('fraction.php'),
3333
], 'fraction-config');
3434

3535
$this->optimizes(Console\ActionOptimizeCommand::class, Console\ActionOptimizeCommand::class, 'actions');
File renamed without changes.

0 commit comments

Comments
 (0)