Package Data | |
---|---|
Maintainer Username: | ecrmnn |
Maintainer Contact: | danieleckermann@gmail.com (Daniel Eckermann) |
Package Create Date: | 2016-03-03 |
Package Last Update: | 2016-03-03 |
Home Page: | https://packagist.org/packages/ecrmnn/lorem |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-06 15:07:35 |
Package Statistics | |
---|---|
Total Downloads: | 3,087 |
Monthly Downloads: | 21 |
Daily Downloads: | 2 |
Total Stars: | 4 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Dummy text and images for Laravel
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
Access Lorem
by using the global helper lorem()
<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>
<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>
MIT © Daniel Eckermann