Skip to content

Commit 54029aa

Browse files
committed
fix forget password errors due to laravel changes in 5.4+
1 parent cf9c507 commit 54029aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Darryldecode/Backend/Components/Auth/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
Route::post('password/email', 'PasswordController@postEmail');
2424

2525
// Password reset routes...
26-
Route::get('password/reset/{token}', 'PasswordController@getReset');
26+
Route::get('password/reset/{token}', 'PasswordController@getReset')->name('password.reset');
2727
Route::post('password/reset', 'PasswordController@postReset');

src/Darryldecode/Backend/Components/User/Models/User.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
use Illuminate\Auth\Passwords\CanResetPassword;
66
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
77
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
8+
use Illuminate\Notifications\Notifiable;
89

910
class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
1011

11-
use Authenticatable, CanResetPassword;
12+
use Authenticatable, CanResetPassword, Notifiable;
1213

1314
const PERMISSION_ALLOW = 1;
1415
const PERMISSION_INHERIT = 0;

0 commit comments

Comments
 (0)