ecrmnn / lorem
Dummy text and images for Laravel
Installs: 3 017
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 0
Type:helper
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2024-11-01 19:47:42 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