ecrmnn/lorem

Dummy text and images for Laravel
3,437 3
Install
composer require ecrmnn/lorem
Latest Version:1.0.3
License:MIT
Last Updated:Mar 3, 2016
Links: GitHub  ·  Packagist
Maintainer: ecrmnn

lorem Build Status Total Downloads

Dummy text and images for Laravel

Install

composer require ecrmnn/lorem

After you have installed open your Laravel config file config/app.php and add the following lines. In the $providers array add the service providers for this package.

Ecrmnn\Lorem\LoremServiceProvider::class

Usage

Access Lorem by using the global helper lorem()

Text

<body>
    <div class="content">
        <!-- Returns one paragraph of lorem ipsum -->
        {!! lorem(1) !!}
    </div>
</body>
<body>
    <div class="content">
        <!-- Returns 23 paragraphs of lorem ipsum -->
        {!! lorem(23) !!}
    </div>
</body>

Image

<body>
    <div class="content">
        <!-- Returns an image (1024x1024) -->
        {!! lorem()->image() !!}
    </div>
</body>
<body>
    <div class="content">
        <!-- Returns an image (1000x600) with class -->
        {!! lorem()->image(1000, 600, ['class' => 'img-responsive']) !!}
    </div>
</body>

License

MIT © Daniel Eckermann

Related Packages

wboyz/laravel-enum

Base enum class with some features.

12,436 8
grohiro/laravel-blade-macro

Laravel Blade `@macro` directive.

11,101 14
digithis/activehelper

Active helper is a simple active state system for your links in laravel 4

2,957 16
wboyz/laravel-api-responses

Api response helper for Laravel.

1,119 2
grohiro/laravel-action-submit

Laravel ActionSubmit button

42 3