2017 © Pedro Peláez
 

library laravel-branding

Simple integration for basic dynamic branding. Useful for white-labeling apps

image

binarycabin/laravel-branding

Simple integration for basic dynamic branding. Useful for white-labeling apps

  • Thursday, November 16, 2017
  • by binarycabin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel-Branding

Simple integration for basic dynamic branding. Useful for white-labeling apps, (*1)

Installation

composer require binarycabin/laravel-branding

Usage

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>

The Versions

16/11 2017

dev-master

9999999-dev

Simple integration for basic dynamic branding. Useful for white-labeling apps

  Sources   Download

MIT

16/11 2017

1.0.0

1.0.0.0

Simple integration for basic dynamic branding. Useful for white-labeling apps

  Sources   Download

MIT