PHP code example of benallfree / laravel-stapler-images
1. Go to this page and download the library: Download benallfree/laravel-stapler-images 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/ */
benallfree / laravel-stapler-images example snippets
function do_postback(Request $r)
{
$u = Auth::user();
$u->update($r->input());
$u->update($r->files()); // This is the important one
}