digitlab/adaptive-view

Adaptive views for Laravel.
66 6
Install
composer require digitlab/adaptive-view
Latest Version:v1.1.0
PHP:>=5.6
License:MIT
Last Updated:Mar 6, 2016
Links: GitHub  ·  Packagist
Maintainer: digitlab

Adaptive View

StyleCI Build Status Total Downloads Latest Stable Version License

An adaptive view extension for Laravel.

Installation

Install using composer:

composer require digitlab/adaptive-view

Follow the instructions in setting up Agent.

Add the service provider in app/config/app.php:

DigitLab\AdaptiveView\AdaptiveViewServiceProvider::class,

Usage

You can create a mobile view with the .mobile.blade.php extension. Similarly you can create tablet views with the .tablet.blade.php extension. Mobile and tablet views will fallback to normal views if they do not exist.

Troubleshooting

  • Check that AdaptiveViewServiceProvider is registered as soon after the ViewServiceProvider as possible. Invoking the view factory before registering AdaptiveViewServiceProvider will cause it not to work.

License

Adaptive View is licensed under The MIT License (MIT).