Is there any way to extend the core functionalities without modifying the core files? #1753
Unanswered
maulik1211
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hello, @maulik1211, If I understand correctly, you want to extend or modify the Core facade. If yes, you can do that by creating your own custom package and then extending the base core facade. For example: namespace {YourPackageName};
use Webkul\Core\Core as BaseCore;
class Core extends BaseCore
{
// Write your own logic with the features of core functionalities.
} Then, in your use {YourPackageName}\Core;
public function register()
{
$this->app->singleton('core', fn() => app(Core::class));
}
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Is there any way to extend the core functionalities without modifying the core files?
Beta Was this translation helpful? Give feedback.
All reactions