can i use repository pattern on rakit? #37
-
how i implement repository and interface on this framework? because every i created files in my custom folder always considered as static class |
Beta Was this translation helpful? Give feedback.
Answered by
esyede
Nov 18, 2024
Replies: 1 comment 4 replies
-
Hi, if you need to load custom classes outside the
Autoloader::directories([
path('app') . 'repositories',
// other paths..
]); Docs about autoloading can be found here: https://rakit.esyede.my.id/docs/id/autoloading |
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! You can load the classes via the Autoloader. (just like when you ask about loading files inside a custom package last time). Then you can use your classes as usual.
Docs for autoloder can be found here:
https://rakit.esyede.my.id/docs/id/autoloading