PHP code example of vinterskogen / laravel-uploaded-image

1. Go to this page and download the library: Download vinterskogen/laravel-uploaded-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/ */

    

vinterskogen / laravel-uploaded-image example snippets


$request->image('avatar')
        ->fit(250, 150)
        ->encode('png')
        ->store('images/users/avatars', 'public');