how can override the handler (packages\Webkul\Core\src\Exceptions)
-
how can override the handler (packages\Webkul\Core\src\Exceptions)
-
Hi @zainawan99,
Just create one of your class and extend with this core handler class,
<?php use Webkul\Core\Exceptions\Handler; class YourExceptionHandler extends Handler {}
Now go to this file
packages/Webkul/Core/src/Providers/CoreServiceProvider.php
and just change the class name in bind method,... $this->app->bind( ExceptionHandler::class, YourExceptionHandler::class ); ...
-
@devansh-webkul if possible they have override app/Exceptions/Handler file src?
-
Hi @zainawan99,
Try the above code that will definitely help you.
-
@devansh-webkul
how can override the 404 page layout?
-
Hi @zainawan99,
That varies from package to package for Admin package 404 is different and for Shop package 404 is different.
So if you want to override you need to override the package view.
-
@devansh-webkul kindly send the exact path how can override this file?
-
Hi @zainawan99,
Which one do you want to override?
-
@devansh-webkul i m override the file same as current custom theme 404 page
-
You can use the blade file tracer to see what file you need to change https://devdocs.bagisto.com/1.x/themes/tracer.html