mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-02 21:31:01 +00:00
feat(app): fresh module-platform, provider, middleware, rule and support implementation
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\View;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class ViewServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register container bindings.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Hand every Blade view the branding values it may render.
|
||||
*
|
||||
* Each one is shared under the same name as the application setting it
|
||||
* comes from, so the templates and the settings screen speak one
|
||||
* vocabulary.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
$branding = [
|
||||
'login_page_logo',
|
||||
'login_page_heading',
|
||||
'login_page_description',
|
||||
'admin_page_title',
|
||||
'copyright_text',
|
||||
];
|
||||
|
||||
foreach ($branding as $setting) {
|
||||
View::share($setting, get_app_setting($setting));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user