File manager - Edit - /home/linknsbh/sabel-eltaqwa.com/assets/lfm/files/shares/events/thumbs/Notifications.tar
Back
ResetPasswordNotification.php 0000644 00000002756 15213400417 0012440 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class ResetPasswordNotification extends Notification { use Queueable; public $url; /** * Create a new notification instance. * * @return void */ public function __construct(string $url) { $this->url = $url; } /** * Get the notification's delivery channels. * * @param mixed $notifiable */ public function via($notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable */ public function toMail($notifiable): MailMessage { $this->url = $this->url . '/' . $notifiable->email; return (new MailMessage) ->subject(__('messages.email.reset_password_subject')) ->greeting(__('messages.email.hello')) ->line(__('messages.email.reset_password_first_line')) ->action(__('messages.email.reset_password'), $this->url) ->line(__('messages.email.reset_password_second_line')) ->line(__('messages.email.regards')) ->salutation(getAppName()); } /** * Get the array representation of the notification. * * @param mixed $notifiable */ public function toArray($notifiable): array { return [ // ]; } } UserResetPassword.php 0000644 00000002757 15213456175 0010745 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class UserResetPassword extends Notification { use Queueable; /** * The password reset token. * * @var string */ public $token; /** * Create a new notification instance. * * @return void */ public function __construct($token) { $this->token = $token; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { return (new MailMessage) ->line('You are receiving this email because we received a password reset request for your account.') ->action('Reset Password', url('password/reset', $this->token)) ->line('If you did not request a password reset, no further action is required.'); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 1.3 |
proxy
|
phpinfo
|
Settings