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('blog::group.name');

View

view('blog::index')

view('blog::partials.sidebar')

Config

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