Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01187ae
commit 91d8591
Showing
38 changed files
with
22,977 additions
and
21,308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace App\Api\V1\Controllers; | ||
|
||
use Config; | ||
use Dingo\Api\Http\FormRequest; | ||
|
||
class ForgotPasswordRequest extends FormRequest | ||
{ | ||
public function rules() | ||
{ | ||
return Config::get('email' => 'required|email'); | ||
} | ||
|
||
public function authorize() | ||
{ | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace App\Notifications; | ||
|
||
use Illuminate\Notifications\Notification; | ||
use Illuminate\Notifications\Messages\MailMessage; | ||
|
||
class ResetPassword extends Notification | ||
{ | ||
public $token; | ||
public $email; | ||
|
||
public function __construct($token,$email) | ||
{ | ||
$this->token = $token; | ||
$this->email = $email; | ||
} | ||
|
||
public function via($notifiable) | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
public function toMail($notifiable) | ||
{ | ||
return (new MailMessage) | ||
->subject('Your Reset Password Link') | ||
->line('You are receiving this email because we received a password reset request for your account.') | ||
->action('Reset Password', url('reset-password', $this->token)."/".str_replace("@","29gnmLTv686QsnV",$this->email)) | ||
->line('If you did not request a password reset, no further action is required.'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace App\Transformers; | ||
|
||
class Json | ||
{ | ||
public static function response($data = null, $message = null, $status = null) | ||
{ | ||
return [ | ||
'data' => $data, | ||
'message' => $message, | ||
'status' => $status, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.