Skip to content
Discussion options

You must be logged in to vote

bagaimana cara saya memanggil model yang sudah saya buat didalam package tersebut?

Jika model nya tidak bernamespace, maka bisa langsung dipanggil sesuai nama kelasnya, tetapi jika kelasnya memiliki namespace, maka harus di load dulu via file boot.php

Contohnya seperti paket berikut ya:
https://github.com/esyede/access
https://github.com/esyede/access/blob/main/boot.php

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wznuhidayat
Comment options

Answer selected by esyede
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants