Custom Namespaces
Edit onWhen a new module is generated it also registers new custom namespaces for Lang
, View
, and Config
.
For example, if you create a new module named Blog, it will also register a new namespace blog for the module.
You can use that namespace for calling any Lang
, View
, or Config
in the module.
Here are some examples of its usage:
Lang Namespace
Lang::get('blog::group.name');
@trans('blog::group.name');
View Namespace
view('blog::index');
view('blog::partials.sidebar');
Config Namespace
config('blog.name');
- Creating a Module
- Configuration