dev-master
9999999-devSimple integration for basic dynamic branding. Useful for white-labeling apps
MIT
by Jeff Kilroy
1.0.0
1.0.0.0Simple integration for basic dynamic branding. Useful for white-labeling apps
MIT
by Jeff Kilroy
Wallogit.com
2017 © Pedro Peláez
Simple integration for basic dynamic branding. Useful for white-labeling apps
Simple integration for basic dynamic branding. Useful for white-labeling apps, (*1)
composer require binarycabin/laravel-branding
Instead of adding your brand graphics, files, etc. within /resources, add them to a /branding directory., (*2)
In your .gitignore file, be sure to add:, (*3)
/branding
So you can keep your branding files separate from your repository., (*4)
Next, in your web.php routes file add the routing necessary to ensure any files in your /branding directory will be accessible by accessing siteurl.com/branding/... :, (*5)
Branding::routes();
This package also comes with a simple method "Branding::hasLogo()" to verify a file exists at /branding/img/logo.png. You can use the code below in your layout view to display the app name, or a logo if one exists:, (*6)
<a class="navbar-brand" href="{{ url('/') }}">
@if(Branding::hasLogo())
<img src="{{ asset('/branding/img/logo.png') }}" alt="{{ config('app.name', 'Laravel') }}" />
@else
{{ config('app.name', 'Laravel') }}
@endif
</a>
Simple integration for basic dynamic branding. Useful for white-labeling apps
MIT
Simple integration for basic dynamic branding. Useful for white-labeling apps
MIT