konekt/concord
Laravel extension for building modular applications using conventions on top of service providers. Manage in-app and external modules with isolation-friendly structure, version compatibility across Laravel releases, and tooling around module registration and organization.
Modules should not define views, and boxes are expected to. Applications may or may not want to use views provided by boxes.
Registering of views can be enabled/disabled in the box config:
<?php
return [
'modules' => [
Vendor\MyModule\Providers\ModuleServiceProvider::class => [
'views' => false
]
]
];
resources/views/order/resources/views/productcategory/ instead of categories/.property-value/show.blade.php_form.blade.php_form_seo.blade.phpshow.blade.php (display a single resource)index.blade.php (display a list of resources of a type)create.blade.php (the create new entry page)edit.blade.php (edit an existing entry page)_form.blade.php (the shared form partial for both edit and create)Namespace can also be set explicitely for view folder to be used as
<?php
return [
'modules' => [
Vendor\SuperBox\Providers\BoxServiceProvider::class => [
'views' => [
'namespace' => 'super'
]
]
]
];
and then use it as:
[@include](https://github.com/include)('super::folder.viewfile')
If not specified explicitely, default namespace is the module's folder name converted to snake case, eg.: Vendor\SuperBox => 'super_box'
Next: Routes »
How can I help you explore Laravel packages today?