ecrmnn/lorem

Dummy text and images for Laravel

Maintainers

Details

github.com/ecrmnn/lorem

Source

Issues

Installs: 2 823

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 3

Forks: 0

Open Issues: 0

Type:helper

1.0.3 2016-03-03 20:45 UTC

This package is not auto-updated.

Last update: 2024-05-17 17:38:58 UTC


README

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