PHP code example of kakposoe / laravel-placeholder-image

1. Go to this page and download the library: Download kakposoe/laravel-placeholder-image library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kakposoe / laravel-placeholder-image example snippets


Kakposoe\LaravelViewGenerator\LaravelViewGeneratorServiceProvider::class,

Kakposoe\LaravelPlaceholderImage\Facades\LaravelPlaceholderImage::class,

{{ PlaceholderImage::get($width = null, $height = null) }}

{{ PlaceholderImage::get(300, 300) }}

<img src="{{ PlaceholderImage::profile($width = null, $height = null) }}">

<img src="{{ PlaceholderImage::icon('arrow-up') }}">

<img src="{{ PlaceholderImage::blur($width = null, $height = null) }}">

<img src="{{ PlaceholderImage::keyword('food') }}">

<img src="{{ PlaceholderImage::dimensions($width = null, $height = null) }}">
bash
php artisan vendor:publish --provider="Kakposoe\LaravelPlaceholderImage\ServiceProvider" --tag="config"