Skip to content

Commit 66857fe

Browse files
some fixes
1 parent d04bd2d commit 66857fe

File tree

3 files changed

+0
-82
lines changed

3 files changed

+0
-82
lines changed

README.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ With "Laravel-ProjectAssist" at your disposal, you can expedite your Laravel pro
2828
- [DataClass Maker](#dataclass-maker)
2929
- [Lang file Maker](#lang-file-maker)
3030
- [.env.example generator](#envexample-generator)
31-
- [Useful Middlewares](#useful-middlewares)
32-
- [VerifyPassword](#verifypassword)
3331
- [License](#license)
3432

3533
## Installation
@@ -169,38 +167,6 @@ If you want to customize those command files, you can publish them using the fol
169167
php artisan vendor:publish --provider=HichemtabTech\LaravelProjectAssist\ProjectAssistServiceProvider --tag=console
170168
```
171169

172-
### Middlewares
173-
174-
Here is a list of middlewares provided by this library:
175-
176-
#### VerifyPassword
177-
178-
This middleware is used to verify the current password of the authenticated user before making an action you have to simply add a params to the reqyest named `currentPassword`.
179-
180-
Add this middleware to Kernel.php file:
181-
```php
182-
protected $routeMiddleware = [
183-
// ...
184-
'verifyPassword' => \App\Http\Middleware\VerifyPassword::class,
185-
];
186-
```
187-
188-
Then use it in your routes:
189-
190-
```php
191-
Route::post('/edit-profile', function (Request $request) {
192-
// The current password is valid...
193-
// continue the profile update
194-
})->middleware('verifyPassword');
195-
```
196-
197-
#### Customization
198-
199-
If you want to customize those middlewares, you can publish them using the following command:
200-
```Bash
201-
php artisan vendor:publish --provider=HichemtabTech\LaravelProjectAssist\ProjectAssistServiceProvider --tag=middleware
202-
```
203-
204170
## License
205171

206172
[MIT](https://github.com/HichemTab-tech/Laravel-ProjectAssist/blob/master/LICENSE)

src/Http/Middleware/VerifyPassword.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/ProjectAssistServiceProvider.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ public function boot(): void
1919
$this->publishes([
2020
__DIR__.'\Console' => app_path('Console'),
2121
], 'console');
22-
$this->publishes([
23-
__DIR__.'\Http\Middleware\VerifyPassword.php' => app_path('Http\Middleware\VerifyPassword.php'),
24-
], 'middleware');
2522
}
2623

2724
/**

0 commit comments

Comments
 (0)