Skip to content

Namespace

Denis Duliçi edited this page Nov 19, 2019 · 2 revisions

When you create a new module, it also registers new namespace based on your alias. You can use that namespace to call translation, view, and config. Check out the following examples:

Translation

trans('my-blog::group.name');

View

view('my-blog::index')

view('my-blog::partials.sidebar')

Config

config('my-blog.name')
Clone this wiki locally