DigitLab / adaptive-view by digitlab

Adaptive views for Laravel.
65
6
4
Package Data
Maintainer Username: digitlab
Maintainer Contact: nick@digitlab.co.za (Nicholas Wiersma)
Package Create Date: 2016-03-03
Package Last Update: 2016-03-06
Language: PHP
License: MIT
Last Refreshed: 2024-04-26 03:02:51
Package Statistics
Total Downloads: 65
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 6
Total Watchers: 4
Total Forks: 1
Total Open Issues: 0

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