Skip to content

Commit f08c6ee

Browse files
committed
Add Validate Signature middleware
1 parent 7f62873 commit f08c6ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Installers/LaravelInstaller.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ protected function configureFiles()
113113
'namespace App\Http\Middleware;' => 'namespace Support\Middleware;',
114114
], base_path('src/Support/Middleware/VerifyCsrfToken.php'));
115115

116+
(new Filesystem)->move(base_path('app/Http/Middleware/ValidateSignature.php'), base_path('src/Support/Middleware/ValidateSignature.php'));
117+
$this->replaceAllInFile([
118+
'namespace App\Http\Middleware;' => 'namespace Support\Middleware;',
119+
], base_path('src/Support/Middleware/ValidateSignature.php'));
120+
116121
/* Models */
117122
(new Filesystem)->move(base_path('app/Models/User.php'), base_path('src/Domain/User/Models/User.php'));
118123
$this->replaceAllInFile([

0 commit comments

Comments
 (0)