LaravelPackages.net
Acme Inc.
Toggle sidebar
digitlab/adaptive-view

Adaptive views for Laravel.

66
6
v1.1.0
About digitlab/adaptive-view

digitlab/adaptive-view is a Laravel package for adaptive views for laravel.. It currently has 6 GitHub stars and 66 downloads on Packagist (latest version v1.1.0). Install it with composer require digitlab/adaptive-view. Discover more Laravel packages by digitlab or browse all Laravel packages to compare alternatives.

Last updated

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).

Comments