Recent Topics

I'd like to modify the mail template

  • In the file Webkul\Admin\Mail\NewOrderNotification.php you have the code.

         * Build the message.
         * @return $this
        public function build()
            return $this->to($this->order->customer_email, $this->order->customer_full_name)

    I'd like to overwrite this to my own view.

    How can I do this?

    Things i've tried:

    • Trying to overwrite events
    namespace Laveto\Aroma\Providers;
    use Illuminate\Support\ServiceProvider;
    use Illuminate\Support\Facades\Event;
    use \Webkul\Admin\Providers\EventServiceProvider as WebkulEventServiceProvider;
    class EventServiceProvider extends WebkulEventServiceProvider
         * Bootstrap services.
         * @return void
        public function boot()
            Event::listen('', 'Laveto\Aroma\Listeners\[email protected]');
    • Overwrite admin service provider (and trying to remove the $this->app->register(EventServiceProvider::class)). And keep of the rest of the code the same.

  • Thanks, although this does work great. Can I edit it in my own package? *if not this is fine, but it's just a bit nicer. Since i've used my own package for all other things.

Log in to reply